Post Reply 
Challenge: Generate a 64 in the display (RPN)
09-02-2020, 08:56 PM
Post: #1
Challenge: Generate a 64 in the display (RPN)
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 ?
Find all posts by this user
Quote this message in a reply
09-02-2020, 09:39 PM (This post was last modified: 09-02-2020 09:43 PM by BruceH.)
Post: #2
RE: Challenge: Generate a 64 in the display (RPN)
9 steps on an 11C - the most obvious method so I expect to be beaten!
Find all posts by this user
Quote this message in a reply
09-02-2020, 10:11 PM
Post: #3
RE: Challenge: Generate a 64 in the display (RPN)
5 steps, HP-41C.
Find all posts by this user
Quote this message in a reply
09-02-2020, 10:38 PM
Post: #4
RE: Challenge: Generate a 64 in the display (RPN)
9 steps HP 42s ... how to get to five.....

Try CC41!
Find all posts by this user
Quote this message in a reply
09-02-2020, 10:49 PM
Post: #5
RE: Challenge: Generate a 64 in the display (RPN)
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.

Try CC41!
Find all posts by this user
Quote this message in a reply
09-02-2020, 10:52 PM
Post: #6
RE: Challenge: Generate a 64 in the display (RPN)
.
7 steps in the HP-25, no modes or contents assumed.

V.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
09-02-2020, 10:56 PM (This post was last modified: 09-02-2020 11:04 PM by Guenter Schink.)
Post: #7
RE: Challenge: Generate a 64 in the display (RPN)
25C 8 steps

41c 5 steps

Günter
Find all posts by this user
Quote this message in a reply
09-02-2020, 10:56 PM
Post: #8
RE: Challenge: Generate a 64 in the display (RPN)
(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.
Find all posts by this user
Quote this message in a reply
09-02-2020, 11:09 PM
Post: #9
RE: Challenge: Generate a 64 in the display (RPN)
(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.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
09-02-2020, 11:24 PM
Post: #10
RE: Challenge: Generate a 64 in the display (RPN)
(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.
Find all posts by this user
Quote this message in a reply
09-02-2020, 11:44 PM
Post: #11
RE: Challenge: Generate a 64 in the display (RPN)
(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.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
09-03-2020, 01:32 AM
Post: #12
RE: Challenge: Generate a 64 in the display (RPN)
By "classics" I merely meant to exclude the WP-34S, the 71B, the RPL machines etc.

Gene
Find all posts by this user
Quote this message in a reply
09-03-2020, 01:36 AM
Post: #13
RE: Challenge: Generate a 64 in the display (RPN)
HP-65 10 steps

Try CC41!
Find all posts by this user
Quote this message in a reply
09-03-2020, 04:43 AM (This post was last modified: 09-03-2020 04:51 AM by Mark Hardman.)
Post: #14
RE: Challenge: Generate a 64 in the display (RPN)
HP42s - 5 steps

Edit: 4 steps
Edit 2: 3 steps

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
09-03-2020, 05:23 AM
Post: #15
RE: Challenge: Generate a 64 in the display (RPN)
(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.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
09-03-2020, 05:41 AM
Post: #16
RE: Challenge: Generate a 64 in the display (RPN)
42S: 2 steps
Werner

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
09-03-2020, 06:10 AM
Post: #17
RE: Challenge: Generate a 64 in the display (RPN)
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

41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE
Find all posts by this user
Quote this message in a reply
09-03-2020, 08:39 AM
Post: #18
RE: Challenge: Generate a 64 in the display (RPN)
Yes, 2 steps and 4 bytes on the HP-42S. Only because now I know it is possible.
Find all posts by this user
Quote this message in a reply
09-03-2020, 09:10 AM (This post was last modified: 09-03-2020 09:11 AM by Thomas Okken.)
Post: #19
RE: Challenge: Generate a 64 in the display (RPN)
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
Visit this user's website Find all posts by this user
Quote this message in a reply
09-03-2020, 09:14 AM (This post was last modified: 09-03-2020 09:15 AM by Sylvain Cote.)
Post: #20
RE: Challenge: Generate a 64 in the display (RPN)
(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)
Find all posts by this user
Quote this message in a reply
Post Reply 




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