Showing results for 
Search instead for 
Did you mean: 
New member
1 0 0 0
Message 1 of 2
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.

The following yield correct answer

8111 [ENTER] - [Store 1]

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


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)



0 Kudos
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.


It may help to read the section in your manual about how the RPN stack works.


Disclaimer: I don't work for HP. I'm just another happy HP calculator user.

0 Kudos
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation