Post Reply 
Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
02-20-2017, 10:34 AM
Post: #44
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant
(02-20-2017 08:41 AM)Werner Wrote:  
(02-17-2017 01:58 PM)Gerson W. Barbosa Wrote:  HP-48G (52.5 bytes)

« 0 1 DUP2 ROT 5 ROLL

START OVER + ROT
OVER INV + SWAP ROT

NEXT DROP2

»

I have not verified all of them, but this one is not correct.
2 returns 1.5 and it should be 2, of course.
Moreover, it's 50 bytes, not 52.5

Werner

52.5 bytes here. Down to 50 without the first ROT, which causes the program to behave the way you mention. Are you sure you have entered it correctly?

Regards,

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming exercise (RPL/RPN) - Reciprocal Fibonacci Constant - Gerson W. Barbosa - 02-20-2017 10:34 AM



User(s) browsing this thread: 4 Guest(s)