|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
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.
|
|
#17
|
||||
|
||||
|
Re: Fibonacci Sequence
Quote:
![]() |
|
#18
|
|||
|
|||
|
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.
|
|
#19
|
|||
|
|||
|
Re: Fibonacci Sequence
Would you care to share this new algorithm? I'm interested to see it.
|
|
#20
|
||||
|
||||
|
Re: Fibonacci Sequence
I found a mathimatical function to define it, thus eliminating recursion. Have fun...
Code:
((x^n)-(-x)^(-n))/sqrt(5) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mechanics of a 3 speed shifting sequence | sanddrag | Technical Discussion | 3 | 27-02-2005 00:34 |
| [FVG]: Opening Sequence | Joshua May | FIRST-related Organizations | 16 | 24-06-2004 00:00 |
| RC bootup sequence | Venkatesh | Programming | 17 | 18-11-2003 20:56 |
| PB_Mode Sequence | DKolberg | Programming | 3 | 17-03-2003 10:54 |
| Competition Sequence for PBasic | ttedrow | Programming | 12 | 23-01-2003 08:49 |