HP (Hewlett-Packard) HP 33s Calculator User Manual


 
13–24 Programming Techniques
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
Program Lines:
(In RPN mode)
Description:


This routine collects all known values in three
equations.


Prompts for and stores a number into the variable
addressed by
i.


Adds 1 to i and repeats the loop until i reaches
13.012.




When i exceeds the final counter value, execution
branches back to A.
Label J is a loop that completes the inversion of the 3
×
3 matrix.
Program Lines:
(In RPN mode)
Description:


This routine completes inverse by dividing by
determinant.


Divides element.


Decrements index value so it points closer to A


Loops for next value.


Returns to the calling program or to


.
Equations with (i)
You can use (i) in an equation to specify a variable indirectly. Notice that
means the variable specified by the number in variable
i (an indirect reference),
but that
i or

means variable i.
The following program uses an equation to find the sum of the squares of variables
A through Z.