Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
|
02-25-2017, 02:49 PM
(This post was last modified: 02-25-2017 02:55 PM by Gerson W. Barbosa.)
Post: #51
|
|||
|
|||
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
If our only goal is just to compute the constant, the following does it faster by summing up about four times as less terms and adding a correction term:
HP-42S Code:
6 XEQ RFC --> 3.35988566624 ( 1.4 s ) HP-42S code on wp34s: 18 A --> 18 XEQ RFC --> 3.359885666243177553172011302918926 ( 0.2 s, timed with TICKS ) HP-41 Code:
7 XEQ ALPHA RFC ALPHA --> 3.359885666 ( 3.7 s ) HP 50g Code:
<< 6 RFC >> TEVAL --> 3.35988566624 ; s: .0946 Notes: 1) non-optimized codes; 2) no proof why this works. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)