HP -15C Owner's Handbook Manual page 103

Hide thumbs Also See for HP-15C:
Table of Contents

Advertisement

MAIN PROGRAM
´ CLEAR M
000-
001- ´ b 9
002- | R
003- O 0
004- ®
005- O - 0
006- G .3
007- "
008- ®
009- G .3
010- +
011- l ÷ 0
012- | n
SUBROUTINE
013- ´ b .3
014- | x
015- | K
016- [
017- -
018- | n
Calculate the slope for the following values of x
0.81, 0.98. Remember to use G 9 (rather than ´ 9) when addressing a
routine with a digit label.
Answers: 1.1507; -0.8415; 1.1652.
Section 9: Subroutines
(Not programmable.)
Start main program.
Radians mode.
Stores x
in
.
R
2
0
Brings x
into X; x
1
(x
- x
) in R
.
2
1
0
Transfer to subroutine ―.3‖ with x
Return from subroutine ―.3‖.
- y
.
1
Brings x
into X-register.
2
Transfer to subroutine with x
Return from subroutine ―.3‖.
y
- y
.
2
1
– x
Recalls (x
) from R
2
1
calculates (y
- y
2
Program end (return to line 000).
Start subroutine .3.
2
x
.
Recall x.
sin x.
2
– sin x, which equals y.
x
Return to origin in main program.
and x
1
103
into Y.
2
.
2
and
0
)/(x
- x
).
1
2
1
: 0.52, 1.25; -1, 1;
2
.
1

Advertisement

Table of Contents
loading

Table of Contents