Growing up in India I learnt the mnemonic BODMAS (pronounced: bodmas!) to help me with remembering the order of operations when solving equations. It stands for:
My wife, who grew up here in the U.S., uses the phrase “Please excuse my dear aunt Sally” to remember the order of operations.
But, hold on, there is a difference between BODMAS and PEMDAS, in India we seem to be performing the division before the multiplication, and here we seem to be multiplying before division! Yikes! what is going on here, who is correct?
They both are, the one thing the mnemonic does not show is that some operations have the same precedence as follows:
(Multiplication and Division) and
(Addition and Subtraction)
Thus M&D and D&M are exactly the same and so is A&S and S&A.
Why is this? Simple, because division can be replaced by a multiplication operation and subtraction can be replaced by an addition, as follows:
x / y = x * (1/y)
and x – y = (x + (-y))