One not way would be to define a 4x4 matrix Mat A
to hold the coefficients of the linear system. Then define a 4x1 column vector Mat V
to hold the constants on the right.
Define a third 4x4 matrix Mat B you may leave filled with 0.
On command line, in Run Mat screen enter (Mat A) ^(-1) and store it in the zero-filled matrix Mat B
. this is the inverse of Mat A.
If the inverse of Mat A exists, and it does in this case, the solution of the system is obtained as the column vector, resulting from the multiplication of Mat B
by column vector Mat V
You can even shorten the procedure by just calculating ((Mat A)^-1)X (Mat V) [EXE]
- Create 4x4 Mat A and type in the coefficients of the linear system.
- Create a 4x1 column vector Mat V for the right-hand sides
- Obtain you solution vector as ((Mat A)^-1)X (Mat V) [EXE]
To get the Mat
identifier on command line,
- use catalog or
- in RunMat screen, press [OPTN] followed by [F2:Mat], then [F1:Mat].
- At this point the identifier is on command line, and you have to press [ALPHA] [X,Theta, T] to enter letter A.
- You use a similar key sequence to enter Mat V
To calculate the inverse of the matrix just use the [SHIFT][)] key sequence which is (X^-1)
Multiplication operator is the regular [times] key.