You are here

Operator Precedence

Primary tabs

Precedence of Operators in R

NameSymbol
Parentheses()
Inverse, Transpose, Horizontal adhesion, Vertical adhesionsolve(), t(), cbind(), rbind()
Element Powering^
Unary plus, minus+,-
Matrix multiply, Kronecker product, Quadratic product%*%, %x%, %&%
Dot product, Element divide*, /
Binary plus, minus+, -

Source: R language definition

Precedence of Operators in Mx 1.0

NameSymbol
Parentheses()
Inverse, Transpose, Unary minus~, ', -
Element Powering^
Multiplication, Dot product, Kronecker product, Quadratic product, Element division*, ., @, &, %
Addition, Subtraction+, -
Horizontal adhesion|
Vertical adhesion_

Source: Mx manual