Programming with HP50g
|
08-31-2015, 01:13 AM
Post: #30
|
|||
|
|||
RE: Programming with HP50g
(08-29-2015 08:11 PM)Allen Wrote: For the interested reader, #D45Bh and #7FE7h (both on 48g) are checksums for two similar 25 byte solutions with only 6 steps each. (not sure if it's faster than the 27.5 byte solutions, but will at least tie one of them, I think). Apparently the original timings were obtained on an HP 49G in exact mode. If such is the case then your first "less complex" solution is faster than all other four. Original unoptimized program: << DUP 3 ^ ROT DUP 3 ^ ROT ROT * ROT ROT * SWAP - >> 122 ms Your solution: << R->C SQ C->R * 2 / >> 90.8 ms Another 7-command 27.5 byte solution: << DUP2 + LASTARG - * * * > 49.7 ms Significantly faster, but longer. Also, it requires LASTARG (flag -55) to be enabled, which might be a great disadvantage. Gerson. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)