News for hackers. Stuff that matters.
Re:6÷2(1+2)=? by baddox on Sunday March 17, 2013 @07:18PM (#5391521)
Obviously, the author is right that there is no universal objective definition of the order of operations. Still, I find it surprising that anyone with a high school level mathematics education would perform the division via the obelus (÷) before the multiplication via juxtaposition.
Re:6÷2(1+2)=? by ulyssesgrant on Sunday March 17, 2013 @07:23PM (#5391542)
In high school (and college) I've always been taught that multiplication and division have equal precedence and should be evaluated in the order in which they are encountered.
Re:6÷2(1+2)=? by baddox on Sunday March 17, 2013 @07:27PM (#5391567)
Was multiplication by juxtaposition ever mentioned explicitly? I was taught to give them equal precedence, but that was explicitly for the division symbol and the multiplication symbol (* or x). Juxtaposition, like 2x or 2(2+1), was always considered to have greater precedence than the division and multiplication symbols.
Re:6÷2(1+2)=? by Semaphor on Monday March 18, 2013 @05:22AM (#5393199)
Nope, never heard that in my 13 years of school in Germany.
Re:6÷2(1+2)=? by sil3ntmac on Sunday March 17, 2013 @07:26PM (#5391558)
Psst... the programmers at google might have a bone to pick with you.
Re:6÷2(1+2)=? by baddox on Sunday March 17, 2013 @07:28PM (#5391570)
I strongly suspect that to be an oversight.
Re:6÷2(1+2)=? by DrJ on Sunday March 17, 2013 @07:24PM (#5391548)
also note that the author skips the multiplication operator. Especially odd (to me) since he is using parenthesis to imply multiplication and the values are not variables but values.
Re:6÷2(1+2)=? by baddox on Sunday March 17, 2013 @07:32PM (#5391587)
If the expression were 6÷2x(1+2)=?, then my intuition would be to evaluate from left to right (division before multiplication). But removing the x symbol makes me want to perform the multiplication via juxtaposition first, just like if it were 6÷2x. Would anyone really interpret 6÷2x as 3x?

note: I had to use an x instead of the asterisk to represent multiplication, since I don't know how to escape the asterisk in Markdown.