2-5 Matrix and Vector Calculations

This section explains how to create matrices, and how to perform basic matrix calculations.

Tip: Since a vector can be viewed as 1-row by n-column matrix or n-row by 1-column matrix, this section does not include explanations specifically about vectors. For more information about vector-specific calculations, see the explanations about the applicable [Action] menu items in “2-7 Using the Action Menu”.

Inputting Matrix Data

You can input matrix values in a single line in the work area, or input matrix values using an actual on-screen matrix.

Inputting Matrix Values in a Single Line

 

 

 

1

2

 

 

0219

To input the matrix

 

and assign it to the variable “mat1” in the Main application work area

 

3

4

 

 

 

 

 

Matrix Variable Element Operations

You can recall the value of any element of a matrix variable. You can also assign a value to any element in a matrix.

0220 To recall the value in row 2, column 1 of the matrix variable “mat1” of example 0219 0221 To assign 5 to the element at row 1, column 2 of “mat1”

Inputting Matrix Values Using an Actual On-Screen Matrix

• Create a new 1-row × 2-column matrix ......................................................................................................

 

6

• Create a new 2-row × 1-column matrix ......................................................................................................

 

7

• Create a new 2-row × 2-column matrix

.....................................................................................................

 

8

• Add a column to the currently displayed matrix .........................................................................................

6

• Add a row to the currently displayed matrix ...............................................................................................

7

• Add both a row and column to the currently displayed matrix ...................................................................

8

 

 

 

2

3

 

 

 

 

 

 

1

 

 

 

0222

To input the matrix

 

and assign it to the variable “mat2”

 

 

4

5

6

 

 

 

 

 

 

 

Performing Matrix Calculations

This section provides examples of how to perform the most basic types of matrix calculations.

Matrix Addition, Subtraction, Multiplication, and Division

 

 

 

1

1

 

 

 

 

2

 

3

 

 

0223

To calculate

 

+

 

 

 

in a single line

 

2

1

 

 

2

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

2

 

3

 

 

 

 

 

1

 

 

 

 

 

 

 

0224

To calculate

 

×

 

 

 

using an actual on-screen matrix

 

2

1

 

 

2

 

1

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

0225

To multiply the matrix

 

 

by 5

 

 

3

 

4

 

 

 

 

 

 

 

 

 

 

 

 

Chapter 2: Main Application

56