linalg(deprecated)/randvector - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/randvector

linalg(deprecated)

  

randvector

  

random vector generator

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

randvector(n, entries=p)

Parameters

n

-

positive integer

entries=p

-

(optional) p is a procedure which generates the entries

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[RandomVector], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The randvector function generates a random vector of dimension n.  It is intended to be used for generating examples for debugging, testing, and demonstration purposes.

• 

The equation entries=p specifies that the nullary function p is to be used to generate the vector entries.  The default is rand(-99..99).  Thus the vector entries are random two-digit integers.

• 

The command with(linalg,randvector) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[RandomVector], instead.

withlinalg:

randvector3

−722−55

(1)

poly := proc() Randpoly(3, x) mod 3 end proc:

randvector2,entries=poly

x3+x2+2x+1x3+2x2

(2)

See Also

linalg(deprecated)[randmatrix]

linalg(deprecated)[vector]

LinearAlgebra

Vector