Operator: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
* <code>= == < <= > >= != <></code> Relational operators | * <code>= == < <= > >= != <></code> Relational operators | ||
* <code>:</code> [[vector]] definition | * <code>:</code> [[vector]] definition | ||
* <code>- +</code> Addition and subtraction | * <code>- + +- -+ ‒ – — </code> 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! | ||
* <code>* ∙ / | * <code>* · ∙ ÷ / ∕ ⁄ ⧸ OVER DIV TIMES × WIDESLASH WIDEBSLASH</code> 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) | ||
* <code> ODOT OTIMES | * <code> .* ⊗ ODOT OTIMES ./ ⊘ ODIVIDE</code> [[Function#hadamard_.28_expression_.3B_expression_.3B_expression_.3B_expression_.29|Element-wise operations]] on vectors and matrices (the circled times symbol is U+2297, the circled slash is U+2298) | ||
* <code>-</code> Unary minus | * <code>- +</code> Unary minus and plus | ||
* <code>[[REV]] [[NROOT]]</code> Reverse an equation, multiple root | * <code>[[REV]] [[NROOT]]</code> Reverse an equation, multiple root | ||
* <code>^ .^</code> Exponentiation | * <code>^ .^ ⓔ</code> Exponentiation and [[Function#hadamard_.28_expression_.3B_expression_.3B_expression_.3B_expression_.29|element-wise]] exponentiation on vectors and matrices (the circled e is U+24D4) | ||
* <code>^T</code> Vector and matrix [[transposition]] | * <code>^T</code> Vector and matrix [[transposition]] | ||
* <code>!</code> Factorial | * <code>!</code> Factorial |
Latest revision as of 20:49, 15 February 2020
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 (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 plusREV 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 accessSIZE
Font size specification