ENCYCLOPEDIA 4U .com



Encyclopedia Home Page

Google
  Web Encyclopedia4u.com

 

Order of operations

In arithmetic and elementary algebra, certain rules are used for the order in which the operations in algebraic expressions are to be evaluated. These precedence rules (which are mere notational conventions, not mathematical facts) are also used in many programming languages and by most modern calculators. In computing the standard algebraic notation is known as infix notation. This article assumes the reader is familiar with addition, division, exponential powerss, multiplication, and subtraction.

The standard order of operations:

Because of the order Parentheses, Powers, Multiplication/Division, Addition/Subtraction, the mnemonic "Please Punch My Dear Aunt Sally" is sometimes used as an aid in learning this sequence.

  • 1. Evaluate subexpressions contained within brackets, bars, or parentheses, starting with the innermost expressions.
  • 2. Evaluate powers; for iterated powers, start from the right:
  • 3. Evaluate multiplications and divisions, starting from the left:
  • 4. Evaluate additions and subtractions, starting from the left:
The expression: is evaluated to 14, and not 20, because multiplication precedes addition. If the intention is to perform the addition first, parentheses must be used:

Example

See also:




Content on this web site is provided for informational purposes only. We accept no responsibility for any loss, injury or inconvenience sustained by any person resulting from information published on this site. We encourage you to verify any critical information with the relevant authorities.



Copyright © 2005 Par Web Solutions All Rights reserved.
| Privacy

This article is licensed under the GNU Free Documentation License. It uses material from the Wikipedia article "Order of operations".