evalm - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


evalm

evaluate a matrix expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

evalm(matrix expression)

Parameters

matrix expression

-

expression

Description

• 

Important: The evalm command has been deprecated.  Matrix algebra expressions involving Matrices such as A·B are evaluated directly, eliminating the need for the additional step of applying evalm.  For additional information, see Linear Algebra Computations in Maple.

• 

The function evalm evaluates an expression involving matrices. It performs any sums, products, or integer powers involving matrices, and will map functions onto matrices.

• 

Note that Maple may perform simplifications before passing the arguments to evalm, and these simplifications may not be valid for matrices. For example, evalm(A^0) will return 1, not the identity matrix.

• 

Unassigned names will be considered either symbolic matrices or scalars depending on their use in an expression.

• 

To indicate non-commutative matrix multiplication, use the operator &*. The matrix product ABC may be entered as A&*B&*C or as &*A,B,C, the latter being more efficient. Automatic simplifications such as collecting constants and powers will be applied. Do NOT use the * to indicate purely matrix multiplication, as this will result in an error. The operands of &* must be matrices (or names) with the exception of 0. Unevaluated matrix products are considered to be matrices. The operator &* has the same precedence as the * operator.

• 

Use 0 to denote the matrix or scalar zero. Use &* to denote the matrix identity. It may be convenient to use alias(Id=&*()).

• 

If a sum involves a matrix and a Maple constant, the constant will be considered as a constant multiple of the identity matrix. Hence matrix polynomials can be entered in exactly the same fashion as fully expanded scalar polynomials.

Examples

Important: The evalm command has been deprecated.  Matrix algebra expressions involving Matrices such as A·B are evaluated directly, eliminating the need for the additional step of applying evalm.  For additional information, see Linear Algebra Computations in Maple.

aliasId=`&*`:

Sarray1,2,3,4:

Tarray1,1,2,1:

evalmS+2T

3472

(1)

evalmS2

7101522

(2)

evalmsinS

sin1sin2sin3sin4

(3)

evalmS&*T

5−111−1

(4)

evalmA&*B&*2BB&*Id

2A&*B2BId

(5)

evalm`&*`A,B,0

0

(6)

See Also

alias

array(deprecated)

linalg(deprecated)

Matrix

matrix(deprecated)

operator