Operator: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No 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>* ∙ / ÷ OVER DIV TIMES ×</code> Multiplication and division | ||
* <code> ODOT OTIMES .* ./ ODIVIDE</code> [[Function#hadamard_.28_expression_.3B_expression_.3B_expression_.3B_expression_.29|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 15:45, 25 August 2019
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 definitionMODModular equationORBoolean orANDBoolean andNEGBoolean negation= == < <= > >= != <>Relational operators:vector definition- +Addition and subtraction* ∙ / ÷ OVER DIV TIMES ×Multiplication and divisionODOT OTIMES .* ./ ODIVIDEelement-wise operations on vectors and matrices)-Unary minusREV NROOTReverse an equation, multiple root^ .^Exponentiation (.^denotes element-wise exponentiation on vectors and matrices)^TVector and matrix transposition!Factorial[ ]Vector and matrix element accessSIZEFont size specification