VECTORDEF: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Keyword | 1= <code>VECTORDEF symbol</code> <code>@label@ { options } VECTORDEF [*] symbol = expression</code> | 2= Defines the symbol to be a vector. This i...") |
No edit summary |
||
Line 14: | Line 14: | ||
<code>VECTORDEF v</code> | <code>VECTORDEF v</code> | ||
<code>VECTORDEF u = | <code>VECTORDEF u = STACK{ a # b # c }</code> | ||
Defines two vectors <code>u</code> and <code>v</code> and assigns a value to <code>v</code>. In expression evaluation, iMath will treat the vectors as non-commutative, that is, <code>u v ≠ v u</code>. | Defines two vectors <code>u</code> and <code>v</code> and assigns a value to <code>v</code>. In expression evaluation, iMath will treat the vectors as non-commutative, that is, <code>u v ≠ v u</code>. | ||
}} | }} | ||
[[Category:Definition]] | [[Category:Definition]] |
Revision as of 09:55, 26 March 2017
Syntax
VECTORDEF symbol
@label@ { options } VECTORDEF [*] symbol = expression
Implemented in iMath since version 2.2.0 or earlier.
Explanation
Defines 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
VECTORDEF u = STACK{ a # b # c }
Defines 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
{{{4}}}