HP Forums

Full Version: Challenge: Generate a 64 in the display (RPN)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
Your challenge is to take a classic RPN machine in an unknown stack circumstance and generate a 64 in the X register.

You may not use any of the digit keys 0 - 9, the EEX key or the decimal point.

Who can come up with the shortest set of steps ?
9 steps on an 11C - the most obvious method so I expect to be beaten!
5 steps, HP-41C.
9 steps HP 42s ... how to get to five.....
According to https://hpmuseum.org/ none of the entries so far are from "The Classics".

On an HP 41-cx I can do this in 4 program steps.
.
7 steps in the HP-25, no modes or contents assumed.

V.
25C 8 steps

41c 5 steps

Günter
(09-02-2020 10:49 PM)Craig Bladow Wrote: [ -> ]According to https://hpmuseum.org/ none of the entries so far are from "The Classics".

On an HP 41-cx I can do this in 4 program steps.

Yes, the “Classics” encompass only the HP-35, HP-80, HP-45, HP-65, HP-70 and HP-55. Perhaps I can use part of my sequence on the HP-65, but then again I assume Gene’s solution should work on all Classics.
(09-02-2020 10:56 PM)Gerson W. Barbosa Wrote: [ -> ]Yes, the “Classics” encompass only the HP-35, HP-80, HP-45, HP-65, HP-70 and HP-55.

Are you implying that the HP-25 isn't a classic !!?? C'mon, Gerson !

V.
(09-02-2020 11:09 PM)Valentin Albillo Wrote: [ -> ]
(09-02-2020 10:56 PM)Gerson W. Barbosa Wrote: [ -> ]Yes, the “Classics” encompass only the HP-35, HP-80, HP-45, HP-65, HP-70 and HP-55.

Are you implying that the HP-25 isn't a classic !!?? C'mon, Gerson !

I consider even the more recent HP-15C, my first one, a Classic. The above is the curator’s definition.

Best regards,

Gerson.
(09-02-2020 11:24 PM)Gerson W. Barbosa Wrote: [ -> ]
(09-02-2020 11:09 PM)Valentin Albillo Wrote: [ -> ]Are you implying that the HP-25 isn't a classic !!?? C'mon, Gerson !

I consider even the more recent HP-15C, my first one, a Classic. The above is the curator’s definition.
      
      
Yes, but we aren't dealing here with "the curator's definition". Notice that Gene's OP literally says (my underline):

            "Your challenge is to take a classic RPN machine [...]"


with no quotes around "classic", no capitalization "Classic", no underline of course, and no reference to the curator's "The Classics (1972)".

Best regards.
V.
By "classics" I merely meant to exclude the WP-34S, the 71B, the RPL machines etc.

Gene
HP-65 10 steps
HP42s - 5 steps

Edit: 4 steps
Edit 2: 3 steps
(09-03-2020 04:43 AM)Mark Hardman Wrote: [ -> ]HP42s - 5 steps

Edit: 4 steps
Edit 2: 3 steps

In the HP42s and some models of the 41 it can be done in 2 steps.

V.
42S: 2 steps
Werner
Gene: 'generate a 64 in the X-register'
.. that is not quite the same as saying 'generate the number 64 in the X-reg', is it?
in that case:
41C: 3 steps
Werner
Yes, 2 steps and 4 bytes on the HP-42S. Only because now I know it is possible.
How about the smallest number of keystrokes?

I thought that was what Gene meant, actually, and the minimum number of program steps does seem to be a bit too easy. On the 42S anyway. Smile
(09-03-2020 05:23 AM)Valentin Albillo Wrote: [ -> ]In the HP42s and some models of the 41 it can be done in 2 steps.
Agreed! (2 steps, 4 bytes)
Pages: 1 2 3 4
Reference URL's