Challenge: Generate a 64 in the display (RPN) - 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: Challenge: Generate a 64 in the display (RPN) (/thread-15529.html) |
Challenge: Generate a 64 in the display (RPN) - Gene - 09-02-2020 08:56 PM 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 ? RE: Challenge: Generate a 64 in the display (RPN) - BruceH - 09-02-2020 09:39 PM 9 steps on an 11C - the most obvious method so I expect to be beaten! RE: Challenge: Generate a 64 in the display (RPN) - Gerson W. Barbosa - 09-02-2020 10:11 PM 5 steps, HP-41C. RE: Challenge: Generate a 64 in the display (RPN) - Craig Bladow - 09-02-2020 10:38 PM 9 steps HP 42s ... how to get to five..... RE: Challenge: Generate a 64 in the display (RPN) - Craig Bladow - 09-02-2020 10:49 PM 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. RE: Challenge: Generate a 64 in the display (RPN) - Valentin Albillo - 09-02-2020 10:52 PM . 7 steps in the HP-25, no modes or contents assumed. V. RE: Challenge: Generate a 64 in the display (RPN) - Guenter Schink - 09-02-2020 10:56 PM 25C 8 steps 41c 5 steps Günter RE: Challenge: Generate a 64 in the display (RPN) - Gerson W. Barbosa - 09-02-2020 10:56 PM (09-02-2020 10:49 PM)Craig Bladow Wrote: According to https://hpmuseum.org/ none of the entries so far are from "The Classics". 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. RE: Challenge: Generate a 64 in the display (RPN) - Valentin Albillo - 09-02-2020 11:09 PM (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. RE: Challenge: Generate a 64 in the display (RPN) - Gerson W. Barbosa - 09-02-2020 11:24 PM (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. I consider even the more recent HP-15C, my first one, a Classic. The above is the curator’s definition. Best regards, Gerson. RE: Challenge: Generate a 64 in the display (RPN) - Valentin Albillo - 09-02-2020 11:44 PM (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 ! 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. RE: Challenge: Generate a 64 in the display (RPN) - Gene - 09-03-2020 01:32 AM By "classics" I merely meant to exclude the WP-34S, the 71B, the RPL machines etc. Gene RE: Challenge: Generate a 64 in the display (RPN) - Craig Bladow - 09-03-2020 01:36 AM HP-65 10 steps RE: Challenge: Generate a 64 in the display (RPN) - Mark Hardman - 09-03-2020 04:43 AM HP42s - 5 steps Edit: 4 steps Edit 2: 3 steps RE: Challenge: Generate a 64 in the display (RPN) - Valentin Albillo - 09-03-2020 05:23 AM (09-03-2020 04:43 AM)Mark Hardman Wrote: HP42s - 5 steps In the HP42s and some models of the 41 it can be done in 2 steps. V. RE: Challenge: Generate a 64 in the display (RPN) - Werner - 09-03-2020 05:41 AM 42S: 2 steps Werner RE: Challenge: Generate a 64 in the display (RPN) - Werner - 09-03-2020 06:10 AM 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 RE: Challenge: Generate a 64 in the display (RPN) - Gerson W. Barbosa - 09-03-2020 08:39 AM Yes, 2 steps and 4 bytes on the HP-42S. Only because now I know it is possible. RE: Challenge: Generate a 64 in the display (RPN) - Thomas Okken - 09-03-2020 09:10 AM 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. RE: Challenge: Generate a 64 in the display (RPN) - Sylvain Cote - 09-03-2020 09:14 AM (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) |