EasyManua.ls Logo

HP HP-32S - Page 82

HP HP-32S
312 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...
Pressing
jj| clearI
clears
the
contents
of
the
displayed
variable.
Press
|r/s|
to
continue
the
program.
For
Example:
See
the
program
for
'Solutions
of
Simultaneous
Equa
tions—Determinant
Method,*
on
page
175
in part 4.
Lines
S24
through
S29
at the endof the S
routine
display
the
results
for
X,
Y,
and
Z.
Note
also
that
each
VIEW
instruction
in
this
program—as
in
all
the
applications
programs—is
preceded
by a
RCL
instruction.
The
RCL
instruction
is
not
necessary,
but
it
is
convenient
because
it
brings
the
VIEWed
variable
to the
X-register,
making
it
available
for
manual
calculations.
(Pressing
I
enter
I
while
viewing
a
VIEW
display
would
have the same effect.)
Example:
INPUTting
and
VIEWing
Variables in a Program.
Write
an
equation
to
find
the
surface
area
and
volume
ofa
cylinder
given
its
radius
and
height.
Label
the
program
C
(for
cylinder),
and use the
variables
S
(surface
area),
V
(volume),
R
(radius),
and
H
(height).
Use
these
formulas:
V = irR2H
S =
2ttR2
+
2irRH
= 2
(irR2
+
irRH).
Keys:
PRGM
lUroJQQ
Hi
LBL/RTN
I
{LBL}
C
(C is the [W) key)
input
I R
ll
INPUT
I H
"rclI
r
ILZ]
rRcnnn
h
HE
E
fsfol
V
RCLpHH
Display:
PRGM
TOP
C01
LBL
C
C92
INPUT
R
C03
INPUT
H
C04
RCL
R
C95
x*
C86
RCLx
H
C07
if
C08
x
C09
STO
V
C10
RCL-r
H
80
5:
Simple
Programming
Description:
Program entry; sets
pointer to top of
memory.
Labels program.
Instructions to prompt
for radius and height,
to
calculate
the
vol
ume,
and
to
store
volume
in
V.
Converts
icR2H
to
irR2.

Table of Contents

Related product manuals