![]() |
Yet another Fibonacci mini-challenge (HP-42S/Free42) - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: General Forum (/forum-4.html) +--- Thread: Yet another Fibonacci mini-challenge (HP-42S/Free42) (/thread-11902.html) Pages: 1 2 |
RE: Yet another Fibonacci mini-challenge (HP-42S/Free42) - Gerson W. Barbosa - 01-09-2019 05:20 AM (12-06-2018 11:30 AM)Thomas Okken Wrote: NOT +/- 1 + IP takes an extra step. However, we could use IP and save one step instead: Code:
This even works for F0. Too bad the working range is from n=0 through n=26 on the actual 42S. On Free42 it’s even worse: it will fail for n=1, because IP(0.99999999999999999999...99) is of course zero. IP can be replaced with RND, provided the display mode is set to FIX 0 or FIX 1, definitely not a good idea. But the limitation can still be overcome by using IP while keeping the original number of steps: Code:
The range on the real 42S is still limited to [1..50], but on Free42 is about [1..160+] (to be checked). |