Hp 33s User Manual Page 44

  • Download
  • Add to my manuals
  • Print
  • Page
    / 387
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 43
2–4 RPN: The Automatic Memory Stack
Exchanging the X and YRegisters in the Stack
Another key that manipulates the stack contents is
[
(x exchange y). This key
swaps the contents of the X– and Y–registers without affecting the rest of the stack.
Pressing
[
twice restores the original order of the X– and Y–register contents.
The
[
function is used primarily to swap the order of numbers in a calculation.
For example, one way to calculate 9
÷
(13
×
8):
Press 13
8
z
9
[q
.
The keystrokes to calculate this expression from left–to–right are:
9
13
8
zq
.
Note
A
lways make sure that there are no more than four numbers in the
stack at any given time — the contents of the T–re
g
ister (the top
register) will be lost whenever a fifth number is entered.
Arithmetic How the Stack Does It
The contents of the stack move up and down automatically as new numbers enter
the X–register (lifting the stack) and as operators combine two numbers in the X–
and Y–registers to produce one new number in the X–register (dropping the stack).
Suppose the stack is filled with the numbers 1, 2, 3, and 4. See how the stack drops
and lifts its contents while calculating
1. The stack "drops" its contents. The T–(top) register replicates its contents.
2. The stack "lifts" its contents. The T–register's contents are lost.
Page view 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 386 387

Comments to this Manuals

No comments