Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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));
Visit this user's website Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
12-16-2009, 06:35 AM
Post: #3
RE: Fibonacci challenge III
is this extended math class included in standard Java?

[Image: 45669_pythonlogo.png][Image: 45668_javalogo.png]
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
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?

No, it's something codecaine and others made

oh I just saw that. THere's a thread about it. thanks

[Image: 45669_pythonlogo.png][Image: 45668_javalogo.png]
Find all posts by this user
Quote this message in a reply
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 Smile
http://www.pro9ramming.com/global-math-s...ml#pid3651
Visit this user's website Find all posts by this user
Quote this message in a reply
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 Smile
http://www.pro9ramming.com/global-math-s...ml#pid3651

wow nice, thanks for the share. Cool

[Image: 45669_pythonlogo.png][Image: 45668_javalogo.png]
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: