Chemistry Reference and  Research
           
 
Periodic Table
- standard table
- large table
 
Chemical Elements
- by name
- by symbol
- by atomic number
 
Chemical Properties
 
Chemical Reactions
 
Organic Chemistry
 
Branches of Chemistry
Analytical chemistry
Biochemistry
Computational Chemistry
Electrochemistry
Environmental chemistry
Geochemistry
Inorganic chemistry
Materials science
Medicinal chemistry
Nuclear chemistry
Organic chemistry
Pharmacology
Physical chemistry
Polymer chemistry
Supramolecular Chemistry
Thermochemistry

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 powers, multiplication, and subtraction.

Contents

The standard order of operations

1. Evaluate subexpressions contained within parentheses, starting with the innermost expressions. (Brackets [ ] are used here to indicate what is evaluated next.)
(4+[10/2])/9=[4+5]/9=1 \,
2. Evaluate exponential powers; for iterated powers, start from the right:
2^{[3^2]}=[2^9]=512 \,
3. Evaluate multiplications and divisions, starting from the left:
[8/2]\times3=[4\times3]=12 \,
4. Evaluate additions and subtractions, starting from the left:
[7-2]-4+1=[5-4]+1=[1+1]=2 \,

The expression: 2 + 3 × 4 is evaluated to 14, and not 20, because multiplication precedes addition. If the intention is to perform the addition first, parentheses must be used: (2 + 3) × 4 = 20.

In Canada, an acronym BEDMAS is often used as a mnemonic for Brackets, Exponents, Division, Multiplication, Addition, and Subtraction.

In the UK, the acronym BODMAS is used for Brackets, Orders, Division, Multiplication, Addition, Subtraction. This is sometimes written as BOMDAS, BIDMAS or BIMDAS where I stands for I"ndices.

In the US, the acronym PEMDAS (for Parentheses, Exponentation, Multiplication/Division, Addition/Subtraction) is used instead, sometimes expressed as the mnemonic "Please Excuse My Dear Aunt Sally".

Example

  • Given:
3-(5-(7+1))^2\times(-5)+2
  • Evaluate the innermost subexpression (7 + 1):
3-(5-8)^2\times(-5)+2
  • Evaluate the subexpression within the remaining parentheses (5 − 8):
3-(-3)^2\times(-5)+2
  • Evaluate the power of (−3)2:
3-9\times(-5)+2
  • Evaluate the multiplication 9 × (−5):
3 - ( - 45) + 2
  • Evaluate the subtraction 3 − (−45):
48 + 2
  • Evaluate the addition 48 + 2:
48 + 2 = 50

Special cases

In the case that a factorial is in an expression, it is evaluated first. When new operations are defined they are generally presumed to take precedence over other operations unless defined otherwise. In the case where repeated operators of the same type are used, such as in

a / b / c

the expression is evaluated from left to right, as

((a / b) / c)

See also

External link

01-04-2007 01:16:19
The contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License. How to see transparent copy