If i holds:
Then XEQ(i) calls:
1
2
3
4
7
8
9
10
Example:
Loop Control With (i).
An index value in i is used by the program "Solutions of Simultaneous Equations —
Matrix Inversion Method" in chapter 15. This program uses the looping
instructions and in conjunction with the indirect instructions
and to fill and manipulate a matrix.
The first part of this program is routine A, which stores the initial loop–control
number in i .
Program lines:
(In RPN mode)
The next routine is L, a loop to collect all 12 known values for a 3
matrix (variables A – I ) and the three constants ( J – L ) for the equations.
LBL A
LBL B
LBL C
LBL D
LBL G
LBL H
LBL I
LBL J
The starting point for data input.
Loop–control number: loop from 1 to 12 in intervals of 1.
Stores loop–control number in i .
To:
y ˆ
Compute
for straight–line model.
y ˆ
Compute
for logarithmic model.
y ˆ
Compute
for exponential model.
y ˆ
Compute
for power model.
x ˆ
Compute
for straight–line model.
x ˆ
Compute
for logarithmic model.
x ˆ
Compute
for exponential model.
x ˆ
Compute
for power model.
Description:
Programming Techniques
3 coefficient
13–23