Reverse Polish Notation (Rpn) Mode; The Rpn Stack - HP 20B User Manual

Business consultant financial calculator
Hide thumbs Also See for 20B:
Table of Contents

Advertisement

For example, key in 1+ 2 x 5 nPr2
1+2*5:b2:m=
Note: the calculator is limited to 12 pending operations. An operation is pending when it is waiting for the input of a number or
the result of an operation of higher priority.

Reverse Polish Notation (RPN) Mode

To set the calculator in RPN mode, refer to the section titled, The Mode Menu: Setting Preferences in Chapter 1 . In RPN
mode, numbers are entered first, separated by pressing
I
Note: pressing
Each time you press an operation or function key in RPN, the answer is calculated immediately and displayed. For example,
suppose you wanted to add two numbers in RPN, 1 and 2. Press
and displayed immediately on the bottom line along with the (+) symbol on the top line.
Note: in RPN mode, when you are in a menu for which
but it also performs the action associated with the key for the menu item, which is generally saving the number in the variable
or calculating the item's value.

The RPN Stack

RPN works by placing numbers in storage registers called the stack . The RPN stack has four levels numbered 1-4. The levels
are stacked on top of one another. See Figure 3.
In Figure 3, the stack contains four numbers, 23, 41, 12, and -15. Each level (1-4) contains one number. When a number is
typed and entered into the stack by pressing
number already in the stack moves up one level. The number in Level 4, -15 , is pushed out and is lost.
2
in Algebraic mode by pressing:
=
or
is optional after entering a number, if the next key pressed is an operation.
Stack Level 4
Stack Level 3
Stack Level 2
Stack Level 1
I
. The result is 241.
I
=
or
, followed by an operation key.
1I2+
I
=
or
are valid, pressing these keys enters the number,
-15
12
41
23
Figure 3 The RPN Stack
, this new number is "pushed" into level one of the stack, and each
18
Mathematical Calculations
. The result, 3.00 , is calculated

Advertisement

Table of Contents
loading

Table of Contents