Section 6: Program Editing; Finding The Error - HP -33E Owner's Handbook Manual

Hide thumbs Also See for HP-33E:
Table of Contents

Advertisement

Section 6
Program Editing
Even the most experienced programmer finds errors in his programs.
These errors range from mistakes in the original equations to mistakes
in recording the program. Wherever they occur they need to be found
and corrected, and the HP-33E is designed to make this error-checking
process as easy as possible.
Finding the Error
One of the easiest ways to find out if your program is working properly
is to work a test case in which you either know the answer or the answer
can be easily determined. For example, if you have a program that
calculates the area of a circle using the formula Area = 7 X r?, you can
easily determine that an input value of 1 for r will give an answer of 7.
Execution. In longer programs a wrong test-case answer will
seldom pinpoint the mistake. For these cases, you can slow down
the program execution by using the
key in RUN mode. In RUN
mode, the
key will execute your program instructions one at a
time. When you hold the
key down in RUN mode, the program
line number and keycode are displayed. When you release the
key,
the instruction is executed. Use
on the simple area of a circle
program shown below to familiarize yourself with its operation.
Example: This program calculates the area of a circle using the formula:
A = mr? where r is the radius. Set the PRGM-RUN switch to PRGM
PRGM[]]I]]]]-RUN and press | (11 AR
to clear program memory
and display line 00. Then key in the list of keys shown below.
Keystrokes
Display
CLEAR
00
(93
01-
150
E3]E3)
02- 15 73
(]
03—
61
70

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-33c

Table of Contents