NY
2023-07-31 20:36:13 UTC
I've seen a question which was apparently a Who Wants to be a Millionaire
question. It gives four answers for
-6² (or -6^2 if the superscript 2 character doesn't reproduce)
Without any brackets, how should this be parsed? -(6^2) or (-6)^2. In other
words, is the answer +36 or -36?
For what it's worth, three of the four answers were 12, -12 and 12i (I
presume they are using i as sqrt(-1)) so the correct answer stands out. It
would have been more cunning if the four answers had been 12, -12, 36, -36.
My gut feeling is that the expression should be parsed as (-6)^2 = 36, but
from comments in the Facebook posting where it is discussed, it seems I'm
wrong and the expression should be parsed as -(6^2) = -36. Of course, I
would never rely on implied rules and would always use brackets to indicate
my meaning, even if they were technically superfluous.
question. It gives four answers for
-6² (or -6^2 if the superscript 2 character doesn't reproduce)
Without any brackets, how should this be parsed? -(6^2) or (-6)^2. In other
words, is the answer +36 or -36?
For what it's worth, three of the four answers were 12, -12 and 12i (I
presume they are using i as sqrt(-1)) so the correct answer stands out. It
would have been more cunning if the four answers had been 12, -12, 36, -36.
My gut feeling is that the expression should be parsed as (-6)^2 = 36, but
from comments in the Facebook posting where it is discussed, it seems I'm
wrong and the expression should be parsed as -(6^2) = -36. Of course, I
would never rely on implied rules and would always use brackets to indicate
my meaning, even if they were technically superfluous.