Programmed Math/Order of operations

Order of Operations in math is dealing with the order in which you work out an equation, which can solve many problems.

For example:

2 x 3 + 5 = x

In this example, what is x? We could either multiply 2 by 3, then add 5 to it OR we could add 3 and 5 together and multiply that by two. But how do we know?

Using BODMAS we can. BODMAS stands for Brackets Over Division Multiplication Addition Subtraction. This is the order we go in.

So using BODMAS we will multiply first and then add. So it is really:

(2x3) + 5 = x x = 11

Order of operation is also important in boolean algebra (see: Boolean Algebra). When a problem needs to be solved, it can be turned into BODMAS form to solve it. For example:

1 AND 1 OR 0 NAND 1. How would this work? If we convert it, it is:

1x1+0x1'= x

So we would go for multiplication first, 1x1 = 1.

so it is now:

1+0x1'=x

We do multiplication again: 0x1 = 0, but because this is the inverse, we make it 1.

So it is now: 1+1 = 2 (or in this case 1, because it is OR).

And our problem gets solved.