SMatrix Arithmetic Operations

[OPTN]-[MAT]-[Mat]/[Iden]

Example 1 To add the following two matrices (Matrix A + Matrix B):

A =

 

1

1

 

B =

 

2

3

 

 

 

 

1

 

 

2

1

 

 

2

 

 

 

 

 

 

 

 

*(MAT)(Mat)?T(A)

(Mat)?J(B)U

Example 2 To multiply the two matrices in Example 1 (Matrix A σ Matrix B)

*(MAT)(Mat)?T(A)

(Mat)?J(B)U

The two matrices must have the same dimensions in order to be added or subtracted. An error occurs if you try to add or subtract matrices of different dimensions.

For multiplication (Matrix 1 σ Matrix 2), the number of columns in Matrix 1 must match the number of rows in Matrix 2. Otherwise, an error occurs.

SDeterminant

 

 

 

 

 

 

[OPTN]-[MAT]-[Det]

Example

Obtain the determinant for the following matrix:

 

Matrix A =

 

1

2

3

 

 

 

 

 

 

 

4

5

6

 

 

 

 

 

−1 −2

0

 

 

 

 

 

 

 

*(MAT)(Det)(Mat)

?T(A)U

Determinants can be obtained only for square matrices (same number of rows and columns). Trying to obtain a determinant for a matrix that is not square produces an error.

The determinant of a 2 σ 2 matrix is calculated as shown below.

A =

 

a11

a12

 

= a11a22 – a12a21

 

a22

 

 

 

a21

 

• The determinant of a 3 σ 3 matrix is calculated as shown below.

 

 

a11

a12

a13

 

 

 

 

 

 

A =

 

a21

a22

a23

 

= a11a22a33 + a12a23a31 + a13a21a32 – a11a23a32 – a12a21a33 – a13a22a31

 

 

a31

a32

a33

 

 

SMatrix Transposition

[OPTN]-[MAT]-[Trn]

A matrix is transposed when its rows become columns and its columns become rows.

Example

To transpose the following matrix:

12

Matrix A = 3 4

56

2-45