Priority | Operator | Description |
1 | ^ | Caret—Exponentiation |
2 | * | Asterisk—Multiplication |
2 | # | Pound sign—Matrix multiplication |
2 | / | (Forward) slash—Division |
2 | MOD | Modulus or modulo |
3 | + | Plus sign—Addition |
3 | - | Minus sign—Subtraction, and unary minus/negation |
3 | < | Less-than sign—Comparative relational minimum |
3 | > | Greater-than sign—Comparative relational maximum |
3 | NOT | Boolean negation |
4 | EQ | Relational Equality |
4 | NE | Relational Not Equal |
4 | LE | Relational Less than or Equal |
4 | LT | Relational Less Than |
4 | GE | Relational Greater than or Equal |
4 | GT | Relational Greater Than |
5 | AND | Boolean AND (union) |
5 | OR | Boolean OR (intersection or inclusion) |
5 | XOR | Boolean eXclusive OR (mutual exclusivity) |