HP (Hewlett-Packard) 32SII Calculator User Manual


 
Simple Programming 12–9
File name 32sii-Manual-E-0424
Printed Date : 2003/4/24 Size : 17.7 x 25.2 cm
Executing a Program (XEQ)
Press
W
label to execute the program labeled with that letter. If there is
only one program in memory, you can also execute it by pressing
z
U
f
(run/stop). The PRGM annunciator blinks on and off while the
program is running.
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: Display: Description:
5
W
A
"
)
Enters the radius, then starts
program A. The resulting area is
displayed.
2.5
W
E
)
Calculates area of the second
circle using program E.
2
{
M
y
W
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).
2. Press
z
U
label to set the program pointer to the start of the
program (that is, at its LBL instruction). The
!
instruction moves the
program pointer without starting execution. (If the program is the first or