Appendix A: RPN and the Stack
Now let's see what happens in the stack during a chain calculation in RPN mode:
See how the intermediate results are not only displayed when they are calculated,
but also automatically stored and available in the stack at just the right time!
That's basically how the stack operates. In the rest of this appendix, we'll take a
more detailed look at how numbers are entered into and rearranged within the
stack, and the effect of the various hp 12c platinum functions on the numbers in the
Getting Numbers Into the Stack: The
As discussed in earlier sections, if two numbers are being keyed in for a
two-number function — such as + — you press \ between the numbers to
separate them. The following diagram illustrates what happens in the stack when
you enter the numbers 10 and 3 (to calculate, for example, 10 ÷ 3). (Assume that
the stack registers have been already loaded with the numbers shown as the result
of previous calculations).
When a digit is keyed into the display, it is simultaneously entered into the
X-register. As additional digit keys are pressed, the corresponding digits are
appended (that is, added to the right of) those already in the displayed X-register
until \ is pressed. As shown in the preceding diagram, pressing \ does the
1. It copies the number from the displayed X-register into the Y-register. This
process is part of the stack lift.