evaluate a matrix expression
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.
S ≔ array⁡1,2,3,4:
T ≔ array⁡1,1,2,−1:
evalm⁡S &* T
evalm⁡A &* B &* 2⁢B−B &* Id
Download Help Document