Editing A Program - HP 25 Owner's Handbook Manual

Programmable scientific calculator
Table of Contents

Advertisement

Programming
91
Press
Display
m
~
01
15 04
C alculates the arc sine
.
m§]
02
15 51
Compares the result to zero
.
mIiJ@J@J
03
13 00
If greater than zero
,
display arc
sine
.
@]
I
04
03
'} Oth"w;"
~
I
05
06
I
add
@J
I
06
00
I
360
degrees
[±]
I
07
51
I
to the arc sine
.
To
run
the
program
set the PRGM-RUN switch back to RUN
PRGM
.mil
RUN
and
pressD
I
PRGM
I
so that the calculator will be-
gin
execution from step 00
.
Then key in positive or negative
values
for x. The resultant arc sine will always be positive
.
Press
Display
m
~
.
5
[R?S]
. 5
rmJ
[E§]
I
0.00
Set degrees mode .
I
30.00
Arc sine of .5 equals 30 degrees
.
:=1
-
=
0
~
.5
~
~==~
Key in negative value for x
.
I
330.00
360 is added to the arc sine to give
a positive angle
.
Editing a Program
Even the most
experienced programmer finds errors in his pro-
grams
.
These errors range from mistakes in the original equa-
tions
to
mistakes
in recording
the
program. Wherever they
occur they
need
to be found and corrected
,
and the HP-25 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
=
7T
X
r2
,
you can easily determine that an input
value of
I
for
r
will give an answer of
7T
.
SST Execution.
In longer programs a wrong test-case answer
will seldom
pinpoint
the mistake. For these cases, you can slow
down program
execution by using the
mil
key in RUN mode
.
In RUN mode
,
the_key
will execute your program instruc-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents