EasyManua.ls Logo

HP 15c Collector's Edition

HP 15c Collector's Edition
308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Section 9: Subroutines 103
MAIN PROGRAM
|
¥
´
CLEAR
M
(Not programmable.)
000
-
001
-
´
b
9
Start main program.
002
-
|
R
Radians mode.
003
-
O
0
Stores
2
in
R
0
.
004
-
®
Brings
1
into
X
;
2
into
Y.
005
-
O
-
0
(
2
1
) in R
0
.
006
-
G
.3
Transfer to subroutine “.3” with
1
.
Return from subroutine “.3”.
007
-
y
1
.
008
-
®
Brings
2
into X
-
register.
009
-
G
.3
Transfer to subroutine with
2
.
Return from subroutine “.3”.
010
-
+
y
2
y
1
.
011
-
l
÷
0
Recalls
(
2
1
) from R
0
and
calculates (y
2
y
1
)/ (x
2
x
1
).
012
-
|
n
Program end (return to line 000).
SUBROUTINE
013
-
´
b
.3
Start
subroutine .3.
014
-
|
x
2
.
015
-
|
K
Recall
x
.
016
-
[
Calculates s
in
x
.
017
-
-
2
sin
x
,
which equals
.
018
-
|
n
Return to origin in main program.
Calculate the slope for the following values of x
1
and x
2
: 0.52, 1.25; −1, 1;
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.

Table of Contents

Related product manuals