beautypg.com

HP Prime Graphing Calculator User Manual

Page 483

background image

Matrices

477

Random

Given two integers, n and m, and a matrix name, creates
an n x m matrix that contains random integers in the range
−99 through 99 with a uniform distribution and stores it in
the matrix name.

randMat(MatrixName,n,m)

Example:

RANDMAT(M1,2,2) returns a 2x2 matrix with

random integer elements, and stores it in M1.

Jordan

Returns a square nxn matrix with expr on the diagonal, 1
above and 0 everywhere else.

JordanBlock(Expr,n)

Example:

JordanBlock(7,3) returns

Hilbert

Given a positive integer, n, returns the n

th

order Hilbert

matrix. Each element of the matrix is given by the formula
1/(j+k-1) where j is the row number and k is the column
number.

hilbert(n)

Example:

In CAS view, hilbert(4) returns

Isometric

Matrix of an isometry given by its proper elements.

mkisom(vector,sign(1 or -1))

Example:

In CAS view, mkisom([1,2],1) returns

7 1 0
0 7 1
0 0 7

1 1

2

- 1

3

- 1

4

-

1
2

- 1

3

- 1

4

- 1

5

-

1
3

- 1

4

- 1

5

- 1

6

-

1
4

- 1

5

- 1

6

- 1

7

-

1

 

cos

1

 

sin

1

 

sin

1

 

cos