Appendix A: RPN and the Stack 239
File name: HP 12c Pt Converted_user's guide_English_HDP0F123E02_080207
Page: 235 of 281
Printed Date:
{
2007/8/2Dimension: 14.8 cm x 21 cm
Chain Calculations in RPN Mode
The automatic stack lift and stack drop make it possible to do chain calculations
without the necessity for keying in parentheses or storing intermediate results, as
are required on some other calculators. An intermediate result in the displayed
X-register is automatically copied into the Y-register when a number is keyed in
after a function key is pressed.
*
Therefore, when a two-number function key is
then pressed, that function is performed using the number keyed into the displayed
X-register and the intermediate result in the Y-register. The number then in the
Y-register, if remaining as an intermediate result from an earlier calculation, can
then be used with the intermediate result in the X-register for another calculation.
The diagram on page 233 illustrates how the automatic stack lift and stack drop
make chain calculations quick and error-free.
Virtually every chain calculation you are likely to encounter can be done using
only the four stack registers. However, to avoid having to store an intermediate
result in a storage register, you should begin every chain calculation at the
innermost number or pair of parentheses and then work outward — just as you
would if you were doing the calculation manually (that is, using pencil and paper).
For example, consider the calculation of
3 [4 + 5 (6 + 7)]
If this calculation were done from left to right — as were the (simpler) examples
under Chain Calculations on page 23 and page 25 — you would have to enter
five
numbers into the calculator before doing the first operation possible (6 + 7).
But since the stack holds only four numbers, this calculation
cannot
be done
left-to-right. However, it can easily be done if you begin with the calculation in the
innermost pair of parentheses — again, (6 + 7).
Keystrokes
(RPN mode)
Display
6
\
7
+
13.00
Intermediate result of (6+7).
5
§
65.00
Intermediate result of 5 (6+7).
4
+
69.00
Intermediate result of [4 + 5(6 +
7)].
3
§
207.00
Final result: 3 [4 + 5 (6 + 7)].
*
Except for
\
,
O
,
_
,
^
. For more information, refer to Stack Lift, page 234.
Содержание 12C
Страница 1: ...HP 12c Platinum Financial Calculator User s guide H Edition 5 HP part number F2231AA 90001 ...
Страница 15: ...Part I Problem Solving ...
Страница 48: ...48 Section 3 Basic Financial Functions ...
Страница 92: ...92 Section 5 Additional Operating Features Keystrokes RPN mode Display 987z 434 65 The correct answer ...
Страница 104: ......
Страница 105: ...Part II Programming ...
Страница 156: ......
Страница 157: ...Part III Solutions ...
Страница 216: ...216 Section 14 Leasing Keystrokes RPN mode Keystrokes ALG mode Display fL12 fL 12 18 10 Annual yield to lessor ...
Страница 230: ......
Страница 231: ...Appendices ...
Страница 277: ......