Program Lines:

Description:

(In RPN mode)

 

  

 "!1L2

   L

 !   ! 

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:

Description:

(In RPN mode)

 

  

 !ª1L2    L  !   !

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 1L2 means the variable specified by the number in variable i (an indirect reference), but that i or 1L2 means variable i.

The following program uses an equation to find the sum of the squares of variables

Athrough Z.

13–24Programming Techniques