Operator
From iMath
Revision as of 20:49, 15 February 2020 by Jrheinlaender (Talk | contribs)
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 definition -
MOD
Modular equation -
OR
Boolean or -
AND
Boolean and -
NEG
Boolean negation -
= == < <= > >= != <>
Relational operators -
:
vector definition -
- + +- -+ ‒ – —
Addition and subtraction (the three last dashes are U+2012, U+2013 and U+2014). Note that the plusminus signs are currently parsed only as strings! -
* · ∙ ÷ / ∕ ⁄ ⧸ OVER DIV TIMES × WIDESLASH WIDEBSLASH
Multiplication and division (the two dots are U+00B7 and U+2219, the division symbol is U+00F7, the four slashes are U+00F7, U+2215, U+2044 and U+29F8, the times symbol is U+00D7) -
.* ⊗ ODOT OTIMES ./ ⊘ ODIVIDE
Element-wise operations on vectors and matrices (the circled times symbol is U+2297, the circled slash is U+2298) -
- +
Unary minus and plus -
REV NROOT
Reverse an equation, multiple root -
^ .^ ⓔ
Exponentiation and element-wise exponentiation on vectors and matrices (the circled e is U+24D4) -
^T
Vector and matrix transposition -
!
Factorial -
[ ]
Vector and matrix element access -
SIZE
Font size specification