Post Reply 
WP-34s, bug, or my mistake
01-26-2016, 04:56 PM
Post: #1
WP-34s, bug, or my mistake
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?
Find all posts by this user
Quote this message in a reply
01-26-2016, 05:10 PM
Post: #2
RE: WP-34s, bug, or my mistake
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)
Find all posts by this user
Quote this message in a reply
01-26-2016, 08:16 PM
Post: #3
RE: WP-34s, bug, or my mistake
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.

César - Information must flow.
Find all posts by this user
Quote this message in a reply
01-26-2016, 08:59 PM
Post: #4
RE: WP-34s, bug, or my mistake
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!
Find all posts by this user
Quote this message in a reply
01-26-2016, 09:19 PM
Post: #5
RE: WP-34s, bug, or my mistake
0 FILL
12 ENTER
65 *
ENTER
ENTER <----- extra enter
,19 *

should do the job.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
01-26-2016, 09:35 PM
Post: #6
RE: WP-34s, bug, or my mistake
I had wished for a more elegant way...
Thank you Nigel!
Find all posts by this user
Quote this message in a reply
01-26-2016, 09:58 PM
Post: #7
RE: WP-34s, bug, or my mistake
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!
Find all posts by this user
Quote this message in a reply
01-26-2016, 10:21 PM (This post was last modified: 01-26-2016 10:29 PM by Didier Lachieze.)
Post: #8
RE: WP-34s, bug, or my mistake
(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
Find all posts by this user
Quote this message in a reply
01-26-2016, 11:07 PM (This post was last modified: 01-26-2016 11:11 PM by Dieter.)
Post: #9
RE: WP-34s, bug, or my mistake
(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
Find all posts by this user
Quote this message in a reply
01-26-2016, 11:12 PM
Post: #10
RE: WP-34s, bug, or my mistake
(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.

César - Information must flow.
Find all posts by this user
Quote this message in a reply
Post Reply 




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