Iff 1
holds:
Then
XEQ(i)
calls:
To:
1
LBL
A
Compute y for straight-line model.
2
LBL
B
Compute y for logarithmic model.
3
LBL
C
Compute y for exponential model.
4
LBL
D
Compute
y for power model.
7
LBL
G
Compute x for straight-line model.
8
LBL
H
Compute x for logarithmic model.
9
LBL I
Compute x for exponential model.
10
LBL
J
Compute x for power model.
Example: Loop Control With (0- An
index
value
in i is used by the
program 'Solutions of Simultaneous Equations—Determinant
Method' on page 175 in part 4. This program uses the looping in
structions ISG i
and
DSE
i in conjunction with the indirect
instructions
RCL<
i)
and ST0<
i)
to fill and manipulate a matrix.
The first part of this program is routine A, which puts the initial loop-
control
number
in
i.
Program
Lines:
R01
LBL
R
R02
1.012
R03
STO
i
Description:
The starting point for data input.
Loop-control number: loop from 1 to 12 in
intervals
of
1.
Stores loop-control number in i.
The next routine is L, a loop to collect all 12
known
values for a 3 x 3
coefficient matrix (variables A-I)
and
the three constants
(J-L)
for the
equations.
106
6:
Programming
Techniques