3. Enter the instructions to evaluate the function. Use a RCL in
struction any place a variable's value is needed for a calculation.
4. End the program with a RTN. The program should end with the
value of the function in the X-register.
Each time that SOLVE executes your program (which could be many
times), the value of the unknown variable changes, as does the value
your program produces. When your program returns a zero, then a
solution has been found for the unknown variable.
Examples Using SOLVE
Example: Solving for the Dimensions of a Box. Use the following
program to evaluate the dimensions of a box (L x W x H —V). Note
that the program uses recall arithmetic, which takes less memory than
recalling a variable and doing arithmetic as separate operations.
B81
LBL
B
B02
INPUT
L
B83
INPUT
W
B04
INPUT
H
B05
INPUT
y
B06
RCL
L
B07
RCL*
W
B08
RCLx
H
B09
RCL-
V
B10
RTN
First enter the program labeled B:
Keys:
Display:
Description:
HI prgm I
Starts program entry.
(IfGTQl QQ
PRGM TOP
Goes to the top of
memory (if necessary).
7: Solving for an Unknown Variable in an Equation
113