HP 33s User Manual
Page 207

Programming
Techniques
13–23
&
&
!- L
&
%1
1L2
2
If i 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 (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 L and L in conjunction with the indirect instructions
1
1L2
2 and !1
1L2
2 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)
Description:
The starting point for data input.
)
Loop–control number: loop from 1 to 12 in intervals of 1.
! L
Stores loop–control number in i.
The next routine is L, a loop to collect all 12 known values for a 3
× 3 coefficient
matrix (variables A – I ) and the three constants ( J – L ) for the equations.