Post Reply 
Yet another Fibonacci mini-challenge (HP-42S/Free42)
12-05-2018, 02:35 AM
Post: #3
RE: Yet another Fibonacci mini-challenge (HP-42S/Free42)
(12-05-2018 02:07 AM)Didier Lachieze Wrote:  Seven steps, not including LBL and END:

Code:
00 { 19-Byte Prgm }
01▸LBL "FIB"
02 1
03 0
04 LBL 00
05 X<>Y
06 STO+ ST Y
07 DSE ST Z
08 GTO 00
09 END

It works also on the HP-41.

Nice! About 3.5 seconds on my real 42S for n = 50 (I thought it would take longer).

I forgot to mention my running times: less than 0.5 seconds for all arguments.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Yet another Fibonacci mini-challenge (HP-42S/Free42) - Gerson W. Barbosa - 12-05-2018 02:35 AM



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