02-05-2015, 01:23 AM
The UnDoug wrote:
Interesting. I've never heard that there is more than one "order of operations."
In math I've only known one order of operations too, and I learned math back when it was "new".
http://en.wikipedia.org/wiki/New_Math
The order of operations used throughout mathematics, science, technology and many computer programming languages is expressed here:[2]
exponents and roots
multiplication and division
addition and subtraction
This means that if a mathematical expression is preceded by one binary operator and followed by another, the operator higher on the list should be applied first. The commutative and associative laws of addition and multiplication allow terms to be added in any order and factors to be multiplied in any order, but mixed operations must obey the standard order of operations.
http://en.wikipedia.org/wiki/Order_of_operations
In computer languages, things sometimes got "iffy" when mixing arithmetic and Boolean operations.