152 Section 12: Calculating with Matrices
Operation
Elements of Result Matrix
*
Matrix in Y-Register Scalar in Y-Register
Scalar in X-Register Matrix in X-Register
+ Adds scalar value to each matrix element.
* Multiplies each matrix element by scalar value.
- Subtracts scalar value
from each matrix
element.
Subtracts each matrix
element from scalar value.
÷ Divides each matrix
element by scalar
value.
Calculates inverse of
matrix and multiplies each
element by scalar value.
*
Result matrix may be the specified matrix.
Example: Calculate the matrix B = 2A, then subtract 1 from every element
in B. From before, use
A =
1 2 3
4 5 9
.
Keystrokes Display
´ < B
Designates matrix B as result
matrix.
l > A
A 2 3
Displays descriptor of
matrix A.
2 *
b 2 3
Redimensions matrix B to the
same dimensions as A,
multiplies the elements of A by
2, stores those values in the
corresponding elements of B,
and displays the descriptor of
the result matrix.