MATRIXDEF
From iMath
Revision as of 09:44, 26 March 2017 by Jrheinlaender (Talk | contribs) (Created page with "{{Keyword | 1= <code>MATRIXDEF symbol</code> <code>@label@ { options } MATRIXDEF [*] symbol = expression</code> | 2= Defines the symbol to be a (two-dimension...")
Contents
Syntax
MATRIXDEF symbol
@label@ { options } MATRIXDEF [*] symbol = expression
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Defines the symbol to be a (two-dimensional) matrix. This is important because matrices are non-commutative when evaluating an expression.
The second form is a shortcut for the combination of MATRIXDEF
and EQDEF
. It defines the symbol and creates an equation defining its value.
Example
MATRIXDEF M
MATRIXDEF N = MATRIX{ a # b # c ## d # e # f ## g# h# i }
Defines two matrices M
and N
and assigns a value to N
. In expression evaluation, iMath will treat the matrices as non-commutative, that is, M N ≠ N M
.
See also
{{{4}}}