k Performing Matrix Calculations

This section presents a number of actual examples of matrix calculations.

Before performing matrix calculations, you need to perform the procedure under “Inputting and Editing Matrix Data” (page 59) to input data into the matrices you plan to use in the calculations.

The table below shows the matrix name notation used in this section. When you see a matrix name in a procedure, you need to perform one of the key operations shown below.

When you see this matrix name:

Perform this key operation:

 

 

Mat Az – {MATRIX}2(Mat)S0(A)
Mat Bz – {MATRIX}2(Mat)S'(B)
Mat Cz – {MATRIX}2(Mat)S$(C)
• All of the examples in this section are performed using natural display.
A Adding and Subtracting Matrices

You can add or subtract matrices only if their dimensions are identical.

Example:

2 0

+

1 2

 

0 2

 

3 4

This example assumes that Mat A contains 2 0 and Mat B contains 0 2Mat A+Mat B

E

1 2 .

3 4

A Multiplying MatricesYou can multiply two matrices only if they both have the same number of rows.

Example:

2 0

+

1 2

×

3

0 2

3 4

5

 

 

 

This example assumes that Mat A contains 20 02 , Mat B contains 13 24 , and Mat C contains 35 .

Mat A+Mat BE*Mat C

E-62