Running The Modified Program - HP -67 Owner's Handbook Manual

Hide thumbs Also See for HP-67:
Table of Contents

Advertisement

160
Program Editing
Press
Display
a
005
32 84
You have now finished modifying the Pythagorean Theorem program
so that you can review the stack at several points during the running
of it. The altered program is shown below:
oor
@
G
02
B
003
BOE
004
3
005
@
006
B
007
008
0@HE
009
[0
010
011
R/S
If you wish, you can use the
key in W/PRGM mode to verify
that the program in your HP-67 matches the one shown above.
Running the Modified Program
To run the Pythagorean Theorem program, you have only to key in
the values for sides a and b and press 3 . The HP-67 will now review
the stack contents, then square side b, exchange the contents of the
X- and Y-registers, and review the stack contents again. Finally, the
value for the hypotenuse will be calculated, the stack contents will
be reviewed a third time, and the calculated value for the hypotenuse
will appear in the X-register when the program stops running.
For example, to compute the hypotenuse of a right triangle with
sides a and b of 22 meters and 9 meters:
Slide the W/PRGM switch wiprem [ll[[[Jrun to RUN.
Press
Display
22
22.00

Advertisement

Table of Contents
loading

Table of Contents