Operator: Difference between revisions

From iMath
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 17: Line 17:
* <code>!</code> Factorial
* <code>!</code> Factorial
* <code>[ ]</code> [[Vector and matrix element access]]
* <code>[ ]</code> [[Vector and matrix element access]]
* <code>SIZE</code> Font size specification
* <code>[[SIZE]]</code> Font size specification


[[Category:Operator]]
[[Category:Operator]]

Revision as of 06:45, 9 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 definition
  • MOD Modular equation
  • OR Boolean or
  • AND Boolean and
  • NEG Boolean negation
  • = == < <= > >= != <> Relational operators
  • : vector definition
  • - + Addition and subtraction
  • * / TIMES Multiplication and division
  • - Unary minus
  • REV NROOT Reverse an equation, multiple root
  • ^ Exponentiation
  • ^T Vector and matrix transposition
  • ! Factorial
  • [ ] Vector and matrix element access
  • SIZE Font size specification