EasyManua.ls Logo

HP HP-11C

HP HP-11C
264 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...
124
Section
8:
Subroutines
015
016
017
018
T
Z=|-3.9651|-3.9651
Y|
9
9
3.9651
|
-3.9651
X=>
3
0.0523
|
8.9477
|
8.9477
Keys
=
[9][LSTy]
0
[@)[FN)
(x2)
(sinxy)
(x2—sinx,
(RetUItn
to
main
=va
program.)
After
the
calculator
passes
through
the
subroutine
under
0a
second
time
to
compute
y,,
the
[f][RTN]instruction
at
line
018
causes
execution
to
return
to
line
009,
the
first
instruction
after
the
most
recent
0
instruction.
At
this point,
y,
is
in
the
X-register;
-y,
is
in
the
Y-register.
The
remaining
instructions
complete
the
slope
calculation.
009
010
011
012
T
Z
Y+
4.9826
X
=
4.9826
1
4.9826 4.9826
Keys
(RCL]O
(]
(9]J(RTN]
(y2a=v1)
(x2—xq)
y2—V¥1
(End
of
Xy
X1
program)
When
calculation
halts,
the
slope
of
the
line
between
x;
and
x,
appears
in
the
display.
To
execute
the
program
yourself,
key
in
the
instructions
listed
on
page
122
and
calculate
the
average
slope
for
following
values
of
x;
and
xo:
0.5,1.25;
2.52,3.72;
5,7.
Answers:
1.7325,
6.2226,
11.9826.

Table of Contents

Related product manuals