linalg[randmatrix] - random matrix generator
|
Calling Sequence
|
|
randmatrix(m, n, options)
|
|
Parameters
|
|
m, n
|
-
|
positive integers
|
options
|
-
|
(optional) names or equations
|
|
|
|
|
Description
|
|
•
|
The randmatrix function generates a random matrix of dimension m by n. It is intended to be used for generating examples for debugging, testing, and demonstration purposes. Several options are available. The options determine the form of the matrix and the entries in the matrix.
|
•
|
The first two arguments specify the row dimension and column dimension. The remaining arguments are interpreted as options and are input as equations or names in any order. The names sparse, dense (default), symmetric, antisymmetric, and unimodular specify the structure of the matrix. The equation entries = f specifies that the nullary function f is to be used to generate the matrix entries. The default is rand(-99..99). Thus the matrix entries are random two digit integers.
|
•
|
The command with(linalg,randmatrix) allows the use of the abbreviated form of this command.
|
|
|
Examples
|
|
Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
poly := proc() Randpoly(3, x) mod 3 end proc;
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?