beautypg.com

Trace, Examples, Identity matrix – HP 39g Graphing Calculator User Manual

Page 187: Transposing a matrix

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

TRACE

TRN

Finds the trace of a square matyix. The trace is equal to the
sum of the diagonal elements. (It is also equal to the sum of

the eigenvalues.)

TRACE(n?flfrix)

Transposes matrix. For a complex matrix, TRN finds the

conjugate transpose.

TRN(«!ai;iv')

Examples

Identity Matrix

You can create an identity matrix with the IDENMAT
function. For example, IDENMAT(2) creates the 2x2 identity
matrix [[

1

,

0

],[

0

,

1

]].

You can also create an identity matrix using the MAKEMAT

{make matrix) function. For example, entering

MAKEMAT(I

a

J,4,4) creates a 4 x 4 matrix showing the

numeral 1 for all elements except zeros on the diagonal. The
logical operator A returns 0 when I (the row number) and J
(the column number) are equal, and returns

1

when they are

not equal.

Transposing a

Matrix

The TRN function swaps the row-column and column-row

elements of a matrix. For instance, element 1,2 (row 1,
column 2) is swapped with element 2,1; element 2,3 is
swapped with element 3,2; and so on.

For example, TRN([[1,2],[3,4]]) creates the matrix

[[1,3],[2,4]].

Matrices

12-13