|
Fibonacci challenge III
|
|
12-15-2009, 09:39 AM
Post: #1
|
|||
|
|||
|
Fibonacci challenge III
Given the first few Fibonacci numbers:
1 1 2 3 5 8 13 ... What is the sum of the first 75 Fibonacci numbers? As an example above, the sum of the first 7 numbers is 33. Answer: 5527939700884756 Just used my extended math class. Here is the 1 line code Code: System.out.println(MathExtended.fibSum(75)); |
|||
|
12-15-2009, 08:04 PM
Post: #2
|
|||
|
|||
|
RE: Fibonacci challenge III
Yeah that is the same as here :
http://www.pro9ramming.com/sum-of-fibona...t-649.html Great Math Class ! There's a fine line between genius and insanity. I have erased this line. Oscar Levant There's a fine line between an administrator and black hat hacker. I have erased this line. Dr DEBCOL |
|||
|
12-16-2009, 06:35 AM
Post: #3
|
|||
|
|||
|
RE: Fibonacci challenge III
is this extended math class included in standard Java?
![]()
|
|||
|
12-16-2009, 08:30 AM
Post: #4
|
|||
|
|||
RE: Fibonacci challenge III
(12-16-2009 06:35 AM)Alphablend Wrote: is this extended math class included in standard Java? No, it's something codecaine and others made "Character is determined more by the lack of certain experiences than by those one has had." Friedrich Nietzsche |
|||
|
12-16-2009, 08:35 AM
Post: #5
|
|||
|
|||
RE: Fibonacci challenge III
(12-16-2009 08:30 AM)Back_track Wrote:(12-16-2009 06:35 AM)Alphablend Wrote: is this extended math class included in standard Java? oh I just saw that. THere's a thread about it. thanks ![]()
|
|||
|
12-16-2009, 09:19 AM
Post: #6
|
|||
|
|||
|
RE: Fibonacci challenge III
I is just a class I created. It is updated again. All you have to do is add the MathExtended.java in your java source folder and you can use it
![]() http://www.pro9ramming.com/global-math-s...ml#pid3651 |
|||
|
12-16-2009, 08:15 PM
Post: #7
|
|||
|
|||
RE: Fibonacci challenge III
(12-16-2009 09:19 AM)codecaine Wrote: I is just a class I created. It is updated again. All you have to do is add the MathExtended.java in your java source folder and you can use it wow nice, thanks for the share.
![]()
|
|||
|
12-16-2009, 08:34 PM
Post: #8
|
|||
|
|||
|
RE: Fibonacci challenge III
thanks if there any max functions thats not built in java and is useful let me know and ill add it
|
|||
|
« Next Oldest | Next Newest »
|







![[Image: 45669_pythonlogo.png]](http://myph.us/pics/45669_pythonlogo.png)
