cancel
Showing results for
Did you mean:
New member
1 0 0 0
Message 1 of 2
465
Flag Post

# Inconsistency how Reverse polar notation handles a formula

HP Recommended
HP 12 C Platinum

Simplified formula is attached in the photo.

There are two identical formulas replacing only (8111, 8023 on the left) with 8000.
Using the exact same key strokes using Reverse Polar Notaion yields two different results.

8111 [ENTER], 8023 [ENTER], 1.02 [ENTER], 1 [ENTER], 6, / (Divide) , y^x  (to the power), / (Divide), - (Minus)

The above key strokes yields 26.4357 where the correct answer is 144.44.

8111 [ENTER] - [Store 1]

8023 [ENTER], 1.02 [ENTER], 1 [ENTER], 6, / (Divide) , y^x  (to the power), / (Divide), - (Minus)  - [Store 2]

2-1=144.44

When I do exactly the same keystrokes using other values, yield the correct answer:

8000 [ENTER], 8000 [ENTER], 1.02 [ENTER], 1 [ENTER], 6, / (Divide) , y^x  (to the power), / (Divide), - (Minus)

Tags (3)
Level 8
622 609 117 207
Message 2 of 2
Flag Post
HP Recommended

The RPN stack only contains 4 numbers (named X, Y, Z and T).  Your first keystroke sequence tries to push 5 numbers onto the stack, which results in the top number (8111) getting pushed off the top and lost.  As you key in each number, and after you press [ENTER} or any operation key, visualize in your mind what each stack register contains.

One way of performing your calculation without losing the 8111 off the top of the stack is by keying 6 [1/x] instead of 1 [ENTER] 6 [ / ].

The correct answer is 114.44, not 144.44.

Your final keystroke sequence gets a correct answer because the first 8000 gets lost off the top of the stack but it's replaced by the second 8000 because it's the same number.  The T register replicates itself as the stack drops.