
RANDMAT
REDIM
REPLACE
SCALE
SCALEADD
SUB
SWAPCOL
SWAPROW
Creates random matrix with a specified number of rows and
columns and stores the result in name
(name must be MO . . . M9). The entries will be integers
ranging from -9 to 9.
RANDMAT name; rows; columns
Redimensions the specified matrix or vector to size. For a
matrix, size is a list of two integers | nl ,n2 j. For a vector, size
is a list containing one integer {«}.
REDIM name; size
Replaces portion of a matrix or vector stored in name with an
object starting at position start. start for a matrix is a list
containing two numbers; for a vector, it is a single number.
Replace also works with lists and graphics.
REPLACE name; start; object
Multiplies the specified rowjmmher of the specified matrix
by value.
SCALE name; value; rownumber
Multiplies the row of the matrix name by value, then adds this
result to the second specified row.
SCALEADD name; value; row! ; row2
Extracts a sub-object—a portion of a list, matrix, or graphic
from object—and stores it into name, start and end are each
specified using a list with two numbers for a matrix, a number
for vector or lists, or an ordered pair, (X,Y), for graphics.
SUB name; object; start; end
Swaps Columns. Exchanges column! and column! of the
specified matrix.
SWAPCOL name; column! ; column!
Swap Rows. Exchanges row!and row! in the specified
matrix.
SWAPROW name; row!; row!
15-24
Programming
Komentarze do niniejszej Instrukcji