HP (Hewlett-Packard) HP 33s Calculator User Manual


 
Simple Programming
12–9
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
Running a Program
To run or execute a program, program entry cannot be active (no program–line
numbers displayed;
PRGM off). Pressing
Å
will cancel Program–entry mode.
Executing a Program (XEQ)
Press
t
label to execute the program labeled with that letter. If there is only
one program in memory, you can also execute it by pressing
¹
r
Ë
Ë
¥
(run/stop).
If necessary, enter the data before executing the program.
Example:
Run the programs labeled A and E to find the areas of three different circles with
radii of 5, 2.5, and 2
π
. Remember to enter the radius before executing A or E.
Keys:
(In RPN mode)
Display: Description:
5
t
A


Enters the radius, then starts
program A. The resulting area is
displayed.
2.5
t
E

Calculates area of the second
circle using program E.
2
º
j
¸
t
A

Calculates area of the third
circle.
Testing a Program
If you know there is an error in a program, but are not sure where the error is, then
a good way to test the program is by stepwise execution. It is also a good idea to
test a long or complicated program before relying on it. By stepping through its
execution, one line at a time, you can see the result after each program line is
executed, so you can verify the progress of known data whose correct results are
also known.
1. As for regular execution, make sure program entry is not active (PRGM
annunciator off).