Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
|
02-17-2017, 09:50 PM
Post: #15
|
|||
|
|||
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
(02-17-2017 01:58 PM)Gerson W. Barbosa Wrote: [font=Courier]HP-50g (50 bytes) Here's an alternative, using local variables and lists for readability: Code:
I didn't measure on stock firmware since I have my calc with newRPL, but for comparison your code was 72 bytes in newRPL and the alternative is 80 bytes. One glitch: it only works for N=3 and higher. Just a different point of view. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)