Question, what is 6/2(1+2)

its obviously over 9000 noob

I had to answer just so I could see if anyone got it wrong…I’m so weak…just like this equation.

We will see how many get it wrong!

what does this have to do with blender or CG?

Um…by what I know of mathematics and how to read formulae, an equation like this would equal 1 (which is what I answered) since the parantheses are considered first, including their multiplier “2” but the other posts in this thread lead me to believe there’s a catch somewhere :eyebrowlift2:

…aaand I’ve found the catch. The problem is how these formulae are written - linear text like this really isn’t the best. Therefore based on interpretation, you could either get 1 or 9.

I read it like this, which would equal ** 1**:

But obviously you guys read it like this and got ** 9**:

The problem is there’s no separation between the denominator and parentheses, which usually means that the parentheses are multiplied by the preceding value. Therefore this kind of question is quite misleading If I solve the equation in the exact way you wrote it, then I’d always get ** 1**. There’s no way to know that the parentheses aren’t part of the improper fraction’s denominator, which can happen with algebra as well as quadratic formulae if I remember correctly.

WRONG! ^^ newb

The answer is both 9 **AND** 1. It depends on which set of rules of operator precedence you were taught and/or follow – BODMAS or PEMDAS

BODMAS (Brackets, Ordinals, Division, Multiplication, Addition Subtraction):

6/2(1+2)

= 6/2(3)

= 3(3)

= 9

PEMDAS (Parentheses, Exponents, Multiplication, Division, Addition, Subtraction)

6/2(1+2)

= 6/2 (3)

= 6/6

= 1

The crucial difference is the ordering of the division and multiplication – both rules end up with 6/2(3), whereas one does the division first to get 3(3) = 9, the other does the multiplication first to get 6/6 = 1.

Except that multiplication and division always have **equal** precedence regardless of how they’re written in the mnemonic. Same goes with addition and subtraction.

Yes, they have equal precedence, like addition and subtraction, but you cannot apply both operations at the same time – you have to apply one before the other. And depending on which rule you follow, you get different answers, which is why some will get 9 and others will get 1.

easy…

do the the junk inside the ( ) first, do the division, then multiply

Even though they have equal precedence you are supposed to apply the operation from the left. I got 9

If you use the standard order of operations you evaluate equal operations from left to right, not by some arbitrary order depending on one’s mood. :spin:

Yes, I just did some research and I stand corrected.

BODMAS and PEMDAS are both correct in a way, but really they should be written (BO)(DM)(AS) and (PE)(MD)(AS) to indicate equal precendences. That way:

6/2(1+2)

= 6/2(3) (BO)/(PE) – (AS)/(AS) inside bracket

= 9 (DM)/(MD) – apply operations left to right at this level.

For example, 10-3+2 is **NOT **5, which would be the case if you followed the “AS” part of either mnemonic. Since addition and subtraction are equal precedence, you follow the left-to-right order – i.e. 10-3 then the result +2 = 9.

Well, now I need to relearn everything my maths teacher taught me

EDIT: Weird, I’m not getting any notification emails from this thread…

left to right rule?

EDIT: I posted a more descriptive explanation on the next page…

i reject your reality and substitute my own

There is no mathematically correct answer, as the question is not well defined.

6/2(1+2)=? is useless.

It’s either 6/(2(1+2)) or it’s (6/2)(1+2)

But there is absolutely no PEMDAS, ADIDAS, PMS or chicken blood rule or anything to explicitly solve such a weak formed question.

This question is intended to expose people with no idea about mathematics, which are simply following a ruleset like BODMAS or PEMDAS.

If the precedence rules are not given, then there is no right answer to the question. This kind of question very easily becomes politics, where the standards are dictated by complex social patterns, including the brute force method.