HP 20b: +/- and ANS (or CHS and LASTx) - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP 20b: +/- and ANS (or CHS and LASTx) (/thread-145212.html)

HP 20b: +/- and ANS (or CHS and LASTx) - Thomas Klemm - 12-26-2008

## HP 20b Using the RPN stack to solve problems efficiently

This solution works on all RPN-calculators I know but gives -0.91 on HP 20b instead. The reason is that +/- copies register X to ANS. Thus the 2nd ANS returns 1/x instead of x.

Microchallenge: Can you help HP and find the correct sequence?

Here's the link to get all HP 20b Training Modules.

Re: HP 20b: +/- and ANS (or CHS and LASTx) - valentino ducati - 12-26-2008

Prologue

Despite the fact the 20b has a RPN mode, it has a strange "new" behaviour, contrary to the also new 35s and the dozens of classic hp RPN calculators:

ENTER after numeric keystrokes doesn't copy X to Y but it does only finalize the input buffer (it isn't X) and copy it to the 1st stack register in 20s.

Incredible, but it works like the high end RPL models. I don't know why they choose to change this important detail of RPN input paradigma...

Possible solution

3,4567 INPUT

INPUT

shift SQR

2 ANS

shift LN

x

+

X<>Y

shift 1/x

-

20 keystrokes and right answer: 4,05

Re: HP 20b: +/- and ANS (or CHS and LASTx) - Thomas Klemm - 12-26-2008

You've cheated a little since ANS is shifted. But still we can do it with 20 keystrokes:

```3.4567
shift SQRT
shift ANS
INPUT
shift LN
2
*
)x
shift 1/x
-
+
```