Section 12: Calculating with Matrices 153
Keystrokes Display
1 -
b 2 3
Subtracts 1 from the elements
of matrix B and stores those
values in the same elements
of B.
The result (which you can view using l B in User mode) is
B =
1 3 5
7 9 17
Arithmetic Operations
With matrix descriptors in both the X- and Y-registers, pressing + or
- calculates the sum or difference of the matrices.
Pressing
Calculates
*
+ Y + X
- Y − X
*
Result is stored in result matrix.
Result matrix may be X or Y.
Example: Calculate C = B − A, where A and B are defined in the previous
example,
A =
1 2 3
4 5 9
and B =
1 3 5
7 9 17
Keystrokes Display
´ < C
Designates C as result
matrix.
l > B
b 2 3
Recalls descriptor of matrix
B. (This step can be skipped
if descriptor is already in X-
register.)
l > A
A 2 3
Recalls descriptor of matrix
A into X-register, moving
descriptor of matrix B to
Y-register.