HP 48g Graphing Calculator User Manual
Page 167
Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".
To create an array filled with random integers:
1. Enter one of the following onto the stack:
■ A list containing the dimensions of the desired random array:
■ [ rows columns >.
■ Any array whose elements you don't mind changing.
2. Press
fMTH)
n H ' T R M A K E :
R F l N M
. Returns a random array
have the dimension specified by the list or array argument. The
array elements are all integers in the range [-9 9]. Each integer is
as likely as any other except for 0, which is twice as likely as the
others.
To
assemble
a matrix by rows from a series of vectors:
1. Enter each vector onto the stack in the order you want them to
appear in the matrix. Enter the row 1 vector first, then the row 2
vector, and so forth, entering the bottom row vector last.
2. Enter the number of rows in the desired matrix.
3. Press
fMTH
) M f i T R R O W
ROW
h
-
to assemble the vectors into a
matrix.
14
To assemble
a matrix
by columns
from
a series of vectors:
1. Enter each vector onto the stack in the order you want them to
appear in the matrix. Enter the column 1 vector first, then the
column 2 vector, and so forth, entering the right-most column
vector last.
2. Enter the number of columns in the desired matrix.
3. Press [
MTH
) M
h
T R
c o l
C O L + to assemble the vectors into a
matrix.
To assemble c matri:'; yctyc, a fiarS,ic:L!E.iir .liagonal from a vector;
1. Enter the vector containing the diagonal elements.
2. Enter one of the following:
■ A list containing the dimensions of the desired matrix:
L rows columns J.
■ A real number representing the number of rows and columns in
the desired square matrix.
a- to create a matrix of the
3. Press pvrnT) M F l T R f N X T ) D ]
desired dimensions using the elements of the diagonal vector as
the diagonal elements of the matrix. If the vector contains more
diagonal elements than are needed to create the matrix, the extra
Matrices and Linear Aigebra 14-3