HP 30b HP 20b Business Consultant and HP 30b Business Professional User's Guid - Page 21

Reverse Polish Notation (RPN) Mode, The RPN Stack, The Mode Menu: Setting, Preferences, stack - rpn mode

Page 21 highlights

For example, key in 1 + 2 x 5 nPr 22 in Algebraic mode by pressing: 1+2*5:b2:m=. The result is 241. 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 keyed in first, separated by pressing I = or , followed by an operation key. I = NOTE: pressing or is optional after keying in a number, if the next key pressed is an operation. 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 1I2+. The result, 3.00, is calculated and displayed immediately on the bottom line along with the (+) symbol on the top line. I = NOTE: in RPN mode, when you are in a menu for which or are valid, pressing these keys enters the number, 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. Stack Level 4 -15 Stack Level 3 12 Stack Level 2 41 Stack Level 1 23 Figure 3 The RPN Stack Mathematical Calculations 13

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114

Mathematical Calculations
13
For example, key in 1 + 2 x 5
nP
r
2
2
in Algebraic mode by pressing:
1+2*5:b2:m=
. The result is 241.
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 keyed in first, separated by pressing
I
or
=
, followed by an operation key.
NOTE: pressing
I
or
=
is optional after keying in a number, if the next key
pressed is an operation.
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
1I2+
. The result,
3.00
, is calculated 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
I
or
=
are valid,
pressing these keys enters the number, 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.
Figure 3
The RPN Stack
Stack Level 4
Stack Level 1
Stack Level 3
-15
12
Stack Level 2
41
23