152 Section 12: Calculating with Matrices

 

Elements of Result Matrix*

Operation

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

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.

Page 152
Image 152
HP 15c Scientific manual Elements of Result Matrix, LA a