Precedence of Operators (MATRIX-END MATRIX command)
Parentheses can be used to control the order in which complex expressions are evaluated. When the order of evaluation is not specified by parentheses, operations are carried out in the order listed below. The operations higher on the list take precedence over the operations lower on the list.
+ − (unary)
:
** &**
* &* &/
+ − (addition and subtraction)
> >= < <= <>=
NOT
AND
OR XOR
Operations of equal precedence are performed left to right of the expressions.
Examples
COMPUTE A = {1,2,3;4,5,6}.
COMPUTE B = A + 4.
COMPUTE C = A &** 2.
COMPUTE D = 2 &** A.
COMPUTE E = A < 5.
COMPUTE F = (C &/ 2) < B.