beautypg.com

HP Prime Graphing Calculator User Manual

Page 487

background image

Matrices

481

Diagonal

Given a list, returns a matrix with the list elements along
its diagonal and zeroes elsewhere. Given a matrix, returns
a vector of the elements along its diagonal.

diag(list) or diag(matrix)

Example:

diag

returns

Cholesky

For a numerical symmetric matrix A, returns the matrix L
such that A=L*tran(L).

cholesky(matrix)

Example:

In CAS view, cholesky

returns

after simplification

Hermite

Hermite normal form of a matrix with coefficients in Z:
returns U,B such that U is invertible in Z, B is upper
triangular and B=U*A.

ihermite(Mtrx(A))

Example:

ihermite

returns

1 2
3 4

1 4

3 1
1 4

3 0
3

3

----

33

3

------

1 2 3
4 5 6
7 8 9

3

1 0

4

1

0

1

2

1

1 1

3

0 3 6
0 0 0

,