Post Reply 
Challenge: Generate a 64 in the display (RPN)
09-03-2020, 10:53 AM
Post: #21
RE: Challenge: Generate a 64 in the display (RPN)
I've got it down to 2 steps and 4 bytes on a 42S but I'm not sure how I can get it that low on a 41C.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
09-03-2020, 11:02 AM
Post: #22
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 06:10 AM)Werner Wrote:  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

Gene: My intent was to have the X register having the number 64, regardless of the original stack or any other initial settings of the calculator.
Find all posts by this user
Quote this message in a reply
09-03-2020, 11:17 AM
Post: #23
RE: Challenge: Generate a 64 in the display (RPN)
In that case, 41C: 5 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, 11:27 AM (This post was last modified: 09-03-2020 11:33 AM by grsbanks.)
Post: #24
RE: Challenge: Generate a 64 in the display (RPN)
I've got it down to 4 steps on a 41CX (or 41C/CV with an X-Func module).
Edit: Make that 3 steps.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
09-03-2020, 11:59 AM
Post: #25
RE: Challenge: Generate a 64 in the display (RPN)
Maybe we need two separate categories :-)

Those using common functions across most machines (+ - SIN COS LN X<>Y) etc. and those using functions only found on one machine? :-)

I am looking forward to the seemingly wide variety of responses. None of them will be out of bounds but likely to generate "Why didn't I think of that?"

feel free to start posting actual solutions at noon central time USA (that's 5 hours from this post).
Find all posts by this user
Quote this message in a reply
09-03-2020, 01:14 PM
Post: #26
RE: Challenge: Generate a 64 in the display (RPN)
Agree, too. For HP 42S, 2 steps, 4 bytes (but not quite 2 keystrokes!)

Andrés C. Rodríguez (Argentina)

Please disregard idiomatic mistakes.
My posts are mostly from old memories, not from current research.
Find all posts by this user
Quote this message in a reply
09-03-2020, 01:27 PM
Post: #27
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 05:23 AM)Valentin Albillo Wrote:  
(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.

I start with a CLA just in case the calculator is already in Alpha mode with some characters entered.

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
09-03-2020, 01:51 PM
Post: #28
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 01:27 PM)Mark Hardman Wrote:  
(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.

V.

I start with a CLA just in case the calculator is already in Alpha mode with some characters entered.

That is not necessary. The two-step solution works regardless of the initial state of the calculator.
Visit this user's website Find all posts by this user
Quote this message in a reply
09-03-2020, 02:39 PM
Post: #29
RE: Challenge: Generate a 64 in the display (RPN)
Am I the only one not finding it?...!!!

Ps: I don’t want a clue, I just wanted to complainSmile

Thibault - not collector but in love with the few HP models I own - Also musician : http://walruspark.co
Find all posts by this user
Quote this message in a reply
09-03-2020, 02:40 PM
Post: #30
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 12:47 PM)Albert Chan Wrote:  HP-12C, 8 steps, 2^6 = 64

Code:
CLX
E^X
...

Very nice but we're not supposed to start posting solutions until 12pm Central Time, so that's 17:00 UTC.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
09-03-2020, 02:47 PM
Post: #31
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 02:40 PM)grsbanks Wrote:  Very nice but we're not supposed to start posting solutions until 12pm Central Time, so that's 17:00 UTC.

Sorry, I mis-read the time as deadline. Post deleted.
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:18 PM
Post: #32
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 01:51 PM)Thomas Okken Wrote:  
(09-03-2020 01:27 PM)Mark Hardman Wrote:  I start with a CLA just in case the calculator is already in Alpha mode with some characters entered.

That is not necessary. The two-step solution works regardless of the initial state of the calculator.

After two seconds reflection it is obvious that the extra CLA is not necessary. What was I thinking?

HP42s - 2 steps, 4 bytes

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:19 PM
Post: #33
RE: Challenge: Generate a 64 in the display (RPN)
.
Hi, all:

I think it's well past the deadline so I'm posting here my solutions in the clear, but first of all let me say that when issuing or taking a challenge, the wording is essential, you should mean non-ambiguously exactly what you mean if you're issuing the challenge and you should read exactly what was written when taking it.

Gene says classic (not "Classic", "The Classics (1972)", etc.) and Gene says steps, not keystrokes, etc.

For the HP42S (and some models of HP-41), my 2-step solution is:

      01 "@"
      02 ATOX


For the HP-25 and many, many other models my 7-step solutions are:

      PI, ENTER, y^x, PI, SQRT, *, INT

or

      CLX, EXP, EXP, PI, *, INT, X^2


Nice little challenge, Gene, thank you !

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, 03:28 PM
Post: #34
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 03:19 PM)Valentin Albillo Wrote:  For the HP42S (and some models of HP-41), my 2-step solution is:
      01 "@"
      02 ATOX
Same here! (HP-42S, HP-41C+XFM, HP-41CV+XFM & HP-41CX)
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:40 PM (This post was last modified: 09-03-2020 03:44 PM by grsbanks.)
Post: #35
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 03:19 PM)Valentin Albillo Wrote:  I think it's well past the deadline

Nope. Not for another 80 minutes.

How do you get "@" in the alpha register? My 3-step solutions use other characters and one operation to adjust the ASCII code to 64.

There are only 10 types of people in this world. Those who understand binary and those who don't.
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:55 PM
Post: #36
RE: Challenge: Generate a 64 in the display (RPN)
Time is not constant. :-)

Ok, deadline lifted. Let's see those solutions!
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:55 PM
Post: #37
RE: Challenge: Generate a 64 in the display (RPN)
Code:
00 { 4-Byte Prgm }
01 "@"
02 ATOX
03 .END.

Ceci n'est pas une signature.
Find all posts by this user
Quote this message in a reply
09-03-2020, 03:57 PM
Post: #38
RE: Challenge: Generate a 64 in the display (RPN)
HP-41C:

01 CLX
02 E↑X
03 10↑X
04 DEC
05 X↑2
06 END


HP-42S:

00 { 4-Byte Prgm }
01 "@"
02 ATOX
03 END
Find all posts by this user
Quote this message in a reply
09-03-2020, 04:52 PM
Post: #39
RE: Challenge: Generate a 64 in the display (RPN)
(09-03-2020 03:40 PM)grsbanks Wrote:  How do you get "@" in the alpha register? My 3-step solutions use other characters and one operation to adjust the ASCII code to 64.
Direct with: CCD ROM, ZENROM, CCD-OSX, etc
Synthetic with: Byte Grabber, etc
Find all posts by this user
Quote this message in a reply
09-03-2020, 05:22 PM (This post was last modified: 09-03-2020 07:39 PM by Massimo C..)
Post: #40
RE: Challenge: Generate a 64 in the display (RPN)
HP 35s: 4 steps

<-
-> °F
ENTER
+
Find all posts by this user
Quote this message in a reply
Post Reply 




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