Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
|
02-18-2017, 11:57 AM
Post: #29
|
|||
|
|||
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
(02-18-2017 09:22 AM)Ángel Martin Wrote: 2. sFIB, partial sum of Fibonacci numbers. ("s" is the SIGMA char). Straight addition of all Fibonacci numbers up to n. I can't follow MCODE so I don't know how you've implemented that. Anyway, sFIB = Fn+2 - 1. (02-18-2017 09:22 AM)Ángel Martin Wrote: 3. sIFIB, partial sum of the inverse of Fibonacci numbers, the subject of this thread. For n>=46 this is the PSI constant as Gerson explained. The execution time for n=46 is 2.87 seconds on a normal-speed HP-41. That's about 4.5 times faster than my RPN version! Thanks for your interest! Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)