Post Reply 
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Programming with HP50g - tigger - 08-07-2015, 09:53 AM
RE: Programming with HP50g - Gerald H - 08-07-2015, 10:05 AM
RE: Programming with HP50g - rprosperi - 08-07-2015, 03:19 PM
RE: Programming with HP50g - Allen - 08-29-2015, 08:11 PM
RE: Programming with HP50g - Allen - 08-30-2015, 02:02 PM
RE: Programming with HP50g - Allen - 08-31-2015, 12:57 AM
RE: Programming with HP50g - Gerson W. Barbosa - 08-31-2015 01:13 AM
RE: Programming with HP50g - BartDB - 08-07-2015, 01:27 PM
RE: Programming with HP50g - tigger - 08-28-2015, 05:38 PM
RE: Programming with HP50g - BartDB - 08-28-2015, 05:48 PM
RE: Programming with HP50g - tigger - 08-31-2015, 09:26 AM
RE: Programming with HP50g - Valfisio - 08-09-2015, 08:56 AM
RE: Programming with HP50g - Jlouis - 08-09-2015, 01:06 PM
RE: Programming with HP50g - Brad Barton - 08-10-2015, 03:43 AM
RE: Programming with HP50g - Tugdual - 08-10-2015, 05:53 AM
RE: Programming with HP50g - Maro - 08-10-2015, 06:03 AM
RE: Programming with HP50g - DavidM - 08-10-2015, 11:21 PM
RE: Programming with HP50g - Gilles - 08-09-2015, 08:17 PM
RE: Programming with HP50g - Gerald H - 08-10-2015, 06:40 AM
RE: Programming with HP50g - Tugdual - 08-10-2015, 07:23 AM
RE: Programming with HP50g - Tugdual - 08-29-2015, 05:31 PM
RE: Programming with HP50g - Brad Barton - 08-11-2015, 02:31 PM
RE: Programming with HP50g - Brad Barton - 08-16-2015, 01:43 AM
RE: Programming with HP50g - tigger - 08-29-2015, 09:33 AM
RE: Programming with HP50g - BartDB - 08-29-2015, 03:56 PM
RE: Programming with HP50g - Gerald H - 08-30-2015, 05:10 AM



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