Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
|
02-19-2017, 01:13 AM
Post: #31
|
|||
|
|||
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
(02-17-2017 01:58 PM)Gerson W. Barbosa Wrote: HP-50g (50 bytes) A couple more HP 50g programs and another HP-42S RPN program (HP-41 compatible). No improvements here except perhaps for the lesser number of steps in the latter. The second HP 50g program is 2.5 bytes longer, but has one less instruction inside the loop. I think I've tried all possible stack-order combinations, but I can't break the 50-byte barrier (which doesn't mean it's not possible, of course). HP-50g (50 bytes) Code: « 0. 1. DUP2 5. ROLL HP-50g (52.5 bytes) Code:
HP-42S ( 28 bytes, excluding END ) Code:
HP-41 ( 29 bytes, including END ) Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)