Operator: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
iMath | 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, <code>3 * 4 + 5</code> will evaluate to 17, not to 23, because <code>+</code> has lower precedence than <code>*</code>. | ||
* | |||
* | |||
[[Category: | * <code>##</code> [[matrix|Matrix]] definition | ||
* <code>; #</code> List separator, [[vector]] definition | |||
* <code>[[EQUIV ... MOD|MOD]]</code> Modular equation | |||
* <code>[[OR]]</code> Boolean or | |||
* <code>[[AND]]</code> Boolean and | |||
* <code>[[NEG]]</code> Boolean negation | |||
* <code>= == < <= > >= != <></code> Relational operators | |||
* <code>:</code> [[vector]] definition | |||
* <code>- +</code> Addition and subtraction | |||
* <code>* / TIMES</code> Multiplication and division | |||
* <code>-</code> Unary minus | |||
* <code>[[REV]] [[NROOT]]</code> Reverse an equation, multiple root | |||
* <code>^</code> Exponentiation | |||
* <code>^T</code> Vector and matrix [[transposition]] | |||
* <code>!</code> Factorial | |||
* <code>[ ]</code> [[Vector and matrix element access]] | |||
* <code>SIZE</code> Font size specification | |||
[[Category:Operator]] | |||
Revision as of 17:23, 8 July 2017
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* / TIMESMultiplication and division-Unary minusREV NROOTReverse an equation, multiple root^Exponentiation^TVector and matrix transposition!Factorial[ ]Vector and matrix element accessSIZEFont size specification