Operating (No Doctor Needed)

Operating (no doctor needed)

Multiplication/division has precedence over addition/subtraction no matter the order:

3*4+2 = 14 and 2+3*4 = 14

12/4+5 = 8 and 5+12/4 = 8

Parenthesis take precedence over all other operations:

(2+3)*4 = 20

(6+3)/3 = 3

Exponents (**) take precedence over multiplication/division and subtraction/addition:

5*3**2 = 45 and 3**2*5 = 45

7+2**2 = 11 and 2**2+7 = 11

12-4**2 = -4

Addition and Subtraction occur in whichever order they appear:

7+5-9 = 3

9-5+7 = 11

Multiplication and Division occur in whichever order they appear in:

6/2*3 = 9

3*5/5 = 3

 

Final Example:

(5+6)+16/2**2 = 15

  • The (5+6) occurs first since it is in parenthesis: 11+16/2**2
  • Then the 2 is squared as exponents take precedence over division and addition: 11+16/4
  • Then the division occurs: 11+4
  • Finally it’s addition: 15

 

One thought on “Operating (No Doctor Needed)”

  1. That’s definitely the most thorough explanation anyone has yet written for this quest. Drop by the emporium and pick yourself up 50 gold, OR a bathroom pass, OR a drink pass, your choice, for such exemplary work, 18askaggs. (You might want to buy a nice pronounceable name for yourself, when you have a chance…)

Leave a Reply

Your email address will not be published. Required fields are marked *