Operator: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
* <code>:</code> [[vector]] definition | * <code>:</code> [[vector]] definition | ||
* <code>- +</code> Addition and subtraction | * <code>- +</code> Addition and subtraction | ||
* <code>* / TIMES</code> Multiplication and division | * <code>* / TIMES .* ./</code> Multiplication and division (<code>.*</code> and <code>./</code> denote element-wise operations on vectors and matrices) | ||
* <code>-</code> Unary minus | * <code>-</code> Unary minus | ||
* <code>[[REV]] [[NROOT]]</code> Reverse an equation, multiple root | * <code>[[REV]] [[NROOT]]</code> Reverse an equation, multiple root |
Revision as of 18:54, 16 April 2018
The following list shows all operators recognized by iMath, from lowest precedence to highest precedence. Operator precedence defines the order in which operators are evaluated when no brackets are set. For example, 3 * 4 + 5
will evaluate to 17, not to 23, because +
has lower precedence than *
.
##
Matrix definition; #
List separator, vector definitionMOD
Modular equationOR
Boolean orAND
Boolean andNEG
Boolean negation= == < <= > >= != <>
Relational operators:
vector definition- +
Addition and subtraction* / TIMES .* ./
Multiplication and division (.*
and./
denote element-wise operations on vectors and matrices)-
Unary minusREV NROOT
Reverse an equation, multiple root^
Exponentiation^T
Vector and matrix transposition!
Factorial[ ]
Vector and matrix element accessSIZE
Font size specification