TOPICS

# Precedence

Consider the expression . This expression has value due to what is called operator precedence (or "order of operations"). Precedence of common operators is generally defined so that "higher-level" operations are performed first (i.e., advanced operations "bind more tightly")/ For simple expressions, operations are typically ordered from highest to lowest in the order:

2. Factorial,

4. Multiplication and division,

For more complex operations, the order of operations depends on the system.

A number of geographically-varying methods for remembering basic precedence rules exist, e.g., PEMDAS in the United States.

Operation, Parenthesis, PEMDAS

Portions of this entry contributed by Christopher Stover

Portions of this entry contributed by Ed Pegg, Jr. (author's link)

## Explore with Wolfram|Alpha

More things to try:

## References

Wolfram Research, Inc. "§A.2.7. Operator Input Forms." http://documents.wolfram.com/mathematica/book/section-A.2.7.

Precedence

## Cite this as:

Pegg, Ed Jr.; Stover, Christopher; and Weisstein, Eric W. "Precedence." From MathWorld--A Wolfram Web Resource. https://mathworld.wolfram.com/Precedence.html