VECTORDEF

From iMath
Revision as of 16:35, 4 January 2023 by Jrheinlaender (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Syntax

VECTORDEF symbol

@label@ { options } VECTORDEF [*] symbol = expression

Implemented in iMath since version 2.2.0 or earlier.

Explanation

Declares the symbol to be a vector. This is important because vectors are non-commutative when evaluating an expression.

The second form is a shortcut for the combination of VECTORDEF and EQDEF. It defines the symbol and creates an equation defining its value.

Example

VECTORDEF v

@u@ VECTORDEF u = left(STACK{ a # b # c }right)

Declares two vectors u and v and assigns a value to v. In expression evaluation, iMath will treat the vectors as non-commutative, that is, u v ≠ v u.

See also

MATRIXDEF