HP Forums
WP-34s, bug, or my mistake - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: WP-34s, bug, or my mistake (/thread-5595.html)



WP-34s, bug, or my mistake - smtschmidt - 01-26-2016 04:56 PM

I use the emulator with Build 9.1.2016, Version 3872 and my calculator with Version 3783.
When I enter the following keystrokes:

0 FILL
12 ENTER
65 *
ENTER (>> x = 780, y = 780)
,19 * (>> x = 148,2, y = 0!)

I get only 0,19*12*65=148,2 and the second result 12*65=780 disappears

But when I try

0 FILL
12 ENTER
65 *
ENTER (>> x = 780, y = 780)
SHOW
EXIT
,19 * (>> x = 148,2, y = 780)

it works as aspected.
Is it a bug or my fault?


RE: WP-34s, bug, or my mistake - Nigel (UK) - 01-26-2016 05:10 PM

ENTER disables automatic stack lift so that, for example, typing 6 ENTER 3 into an empty stack leaves the stack as 3 6 0 0 rather than as 3 6 6 0. This is what happens in your first example. It's quite normal, I think; Free42 behaves in exactly the same way and I think that other HP RPN calculators do too.

From your second example I deduce that EXIT re-enables stack lift. I didn't know that!

Nigel (UK)


RE: WP-34s, bug, or my mistake - emece67 - 01-26-2016 08:16 PM

I think it works as expected on the first example. The 42 behaves this way.

The second example does not replicate what the 42 does (it behaves as in the first example). Being this a bug or a. feature is out of my reach.

Regards.


RE: WP-34s, bug, or my mistake - smtschmidt - 01-26-2016 08:59 PM

Sorry, I use most of the time the RPN9 on my WindowsPhone.
Perhaps you can tell me a fast way to get x = 148,2 and y = 780 from the calculation?
Many thanks in advance!


RE: WP-34s, bug, or my mistake - Nigel (UK) - 01-26-2016 09:19 PM

0 FILL
12 ENTER
65 *
ENTER
ENTER <----- extra enter
,19 *

should do the job.

Nigel (UK)


RE: WP-34s, bug, or my mistake - smtschmidt - 01-26-2016 09:35 PM

I had wished for a more elegant way...
Thank you Nigel!


RE: WP-34s, bug, or my mistake - smtschmidt - 01-26-2016 09:58 PM

Only to complete successfully. What I am look for was the following:
0 FILL
12 ENTER
65 *
RCL .. (RCL x)
,19 *

Thank for your help!


RE: WP-34s, bug, or my mistake - Didier Lachieze - 01-26-2016 10:21 PM

(01-26-2016 09:58 PM)smtschmidt Wrote:  Only to complete successfully. What I am look for was the following:
0 FILL
12 ENTER
65 *
RCL .. (RCL x)
,19 *

Thank for your help!

Other possibilities :

0 FILL
12 ENTER
65 *
STO Y
,19 *

Or:

0 FILL
12 ENTER
65 *
,19 RCL* Y


RE: WP-34s, bug, or my mistake - Dieter - 01-26-2016 11:07 PM

(01-26-2016 09:35 PM)smtschmidt Wrote:  I had wished for a more elegant way...

First of all, everything works as expected. The 34s behaves exactly as other classic HPs. So everything is fine here.

I assume you want to calculate 19% VAT from a net value. ;-)
That's trivial:

12
[ENTER]
65
[x]
19
[%]

The percent function keeps the base value in Y and replaces X with the 19% tax amount.
So you end up with 780 in Y and 148,20 in X.
Now you can add the tax with a simple [+] to get 928,20.

BTW you do not need this 0 FILL at the beginning. You only work with the numbers you entered, so there is no need to clear anything before.

Dieter


RE: WP-34s, bug, or my mistake - emece67 - 01-26-2016 11:12 PM

(01-26-2016 09:19 PM)Nigel (UK) Wrote:  0 FILL
12 ENTER
65 *
ENTER
ENTER <----- extra enter
,19 *

0 FILL
12 ENTER
65 *
ENTER
x<> Y
.19 *

As "elegant", but for some reason I prefer it. Sometimes I also use two consecutive x<>Y to reset stack lift, many hp machines have the x<>Y command directly accesible from the keyboard without shifts, so it is fast.