![]() |
Re: Fibonacci Sequence
I'll try to. I think I found a way to make my program significantly faster. With a new algorithm and my desktop computer it took ~9 sec to get the millionth term and 3:22:000 for the 5,000,000th. I'll try 100 mil. My guess is about 15-20 hour run time.
|
Re: Fibonacci Sequence
Quote:
|
Re: Fibonacci Sequence
I tried that, but it didn't work for me, with such large numbers. Feel free to see if you can get it to work yourself.
|
Re: Fibonacci Sequence
Would you care to share this new algorithm? I'm interested to see it.
|
Re: Fibonacci Sequence
I found a mathimatical function to define it, thus eliminating recursion. Have fun...
Code:
((x^n)-(-x)^(-n))/sqrt(5) |
| All times are GMT -5. The time now is 07:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi