152 Section 12: Calculating with Matrices

 

Elements of Result Matrix*
OperationMatrix in Y-RegisterScalar in Y-Register

 

Scalar in X-RegisterMatrix in X-Register

+

Adds scalar value to each matrix element.

*

Multiplies each matrix element by scalar value.

-

Subtracts scalar value

Subtracts each matrix

 

from each matrix

element from scalar value.

 

element.

 

÷

Divides each matrix

Calculates inverse of matrix

 

element by scalar value.

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

⎡1 2 3⎤ A = ⎣4 5 9.

Keystrokes

Display

 

´<B

 

 

l>A A 2

3

2 *

b 2

3

Designates matrix B as result matrix.

Displays descriptor of matrix A.

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.