On this page -- that I saw advertised on reddit -- I was asked a question that I used the Python programming language to get my computer to figure out. Unless I'm missing something, the answer (of 6) that I gave was correct. Please could someone explain to me what I'm missing?
If I'm not missing anything; what? Am I supposed to take their word for it over my computer's? If anyone wants to take it up -- if I'm not missing anything -- you can argue with the code. The computer doesn't lie:
answer = (-4 ** (1 / 2)) * (-9 ** (1 / 2))
print(answer)
print(answer == -6)
Thank you for the help. :)
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
− 4 × − 9 = − 1 × 4 × − 1 × 9 = 2 i × 3 i = 6 × i 2 = 6 × − 1 = − 6 .
Perhaps your calculation went − 4 × − 9 = − 4 × − 9 = 3 6 = 6 . This is not valid, however, since ( a b ) c = a c b c only works (all the time) for a , b ≥ 0 . Part of the motivation for this restriction is that we want a unique value for something like 3 6 , and without this restriction we would have 3 6 equalling both 6 and − 6 , which is problematic.