{V

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 Xlabel to execute the program labeled with that letter. If there is only one program in memory, you can also execute it by pressing

g(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:

Display:

Description:

(In RPN mode)

 

 

5 XA

"

 

) 

2.5 XE

 ) 

2 NzX 

A

)

Enters the radius, then starts program A. The resulting area is displayed.

Calculates area of the second circle using program E. 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).

Simple Programming 12–9

Page 167
Image 167
HP 33s Scientific manual Running a Program, Executing a Program XEQ, Testing a Program, NzX , Run/stop