Order of operations
Sums are worked out in the standard order, often remembered as PEMDAS or BODMAS:
- Brackets
- Powers and roots, worked from right to left, so 2^3^2 is 2^9 = 512
- Multiplication and division, from left to right
- Addition and subtraction, from left to right
A minus sign in front of a number comes after the power: −2^2 is −4, and (−2)^2 is 4. Numbers next to brackets or constants are multiplied, so 2π and 3(4+1) work as you would write them on paper.