EasyManua.ls Logo

HP HP-32S - Writing Programs for SOLVE

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...
To
solve
for
a
different
unknown
in
the
same
equation:
Just
specify
the
unknown
variable:
flj|
solve// I
{SOLVE}
variable.
The
same
program
that
was
last
specified
(FN=
label)
will
be
used
again.
Writing
Programs
for
SOLVE
Before
you
solve
for
an
unknown
variable,
you
must
write
a
program
or
subroutine
that
evaluates
the
function.*
Writing
a
Function
From
an Equation.
First
simplify
the
equation
by combining all like variables
and
all constants. Then move all the
terms to one side of the equation, leaving only zero on the other side.
For
example,
the
equation
for the
volume
of a
box
is
given
by
Length x Width x Height =
Volume.
Rearranging the terms to make one side equal to zero
yields
Length x Width x Height - Volume = 0 , or
LxWxH-V*
=
0.
To
write
a
program
evaluating
a
function:
1.
Begin
with a label so that the program can be called by
SOLVE.
2. Include an INPUT instruction for each variable, including the
unknown. (If there is only one variable in the function, omit the
INPUT
instruction
since
it is ignored for the unknown
anyway.)t
*
SOLVE
worksonlywith
real
numbers.
However,
if youhavea
complex-valued
function
that
canbe
written
to
isolate
the
real
and
imaginary
parts,
SOLVE
canthen
solve
for
the
parts
separately.
tThe
INPUT instructions are useful for multi-variable functions. Since the INPUT for the
unknown is ignored, you need write only
one
program,
which
contains
INPUTinstructions
for all
variables.
You can use the same programno matter which
variable
is the unknown.
112
7:
Solving
ffor
an
Unknown
Variable
in
an
Equation

Table of Contents

Related product manuals