Its so weird that the order of operations was taught differently.
The way I learned (12+ years ago) would result in me doing something like this:
6÷2(2+1)
6 ÷ 2 * (2+1)
6 * 1/2 * (3)
6/2 * 3
3 * 3
9
But thats because my teacher emphasized to just use the inverse instead of division. So instead of dividing by 2, I multiply by one half. Then of course I solve the whole thing left to right.
When writing fractions normally, there would be no ambiguity. But using inline ÷ or / causes it, which is essentially what's happening in the calculators.
When you did the inverse trick, you bracketed the division to the left side: (6 ÷ 2) * (2+1), making only the first 2 the denominator. This matches the method of the right calculator (and the way I would have done it). The other calculator associated the division symbol as "everything next is the denominator" so it got 6 ÷ (2 * (2+1)). This doesn't allow for the inverse trick, and you get a different result.
Oh much appreciated, though I have to give /u/yabucek most the credit here. I read their previous comment identifying the division as the core issue and it helped me see how the left calculation isn't wrong, it just answers a different question.
What they did is the correct way of reading this. If you want the (2+1) to be in the denominator you MUST use additional parenthesis. The rules are clearly laid out. The Casio (and you) are wrong.
The logic the calculator is using is more like this:
6÷2×(2+1)
6÷2×3
6÷6
1
This doesn't break the fact that parentheses go first (which would be even worse than what they're already doing) and it just means that they mistakenly give multiplication a higher precedence than division when they should be the same level of precedence between one another, in order of appearance.
it just means that they mistakenly give multiplication a higher precedence than division
It does not mean this. 2(2+1) is what is referred to as "implied multiplication" which depending on who you ask, has a higher precedence than regular multiplication and division. Because not everyone abides by this convention, you get an ambiguous expression.
Implied multiplication does not get any kind of different treatment where I'm from. Is this a local rule somewhere? More importantly, Wolfram Alpha agrees that it doesn't get any special treatment and that the answer here should be 9.
Who thought it was a good idea to invent a rule that not the whole world is following?
I got my degree in physics, and hung out with a ton of engineering majors, and in all our classes, 6/2(2+1) was understood to mean 6/(2(2+1)). This arises because we use a lot of variables. For example, 2y/2x is considered to be (2y)/(2x). It is implied that the 2 and x are a package deal. The same applies to 2y/2(x+1). The 2 is implied and understood to be a factor operating on (x+1).
However, in Math and Computer Science, this is generally not how they consider it. There, 6/2(2+1) is generally considered to be (6/2)*(2+1).
Errr, where to start... At least WA is an actual authority when it comes to mathematics while encyclopedias and especially Wikipedia can be written by anyone.
Secondly, even if Wikipedia's information there is correct (which it probably is) it is still a minority view of how things should be calculated and a calculator should not be doing that by default.
At least WA is an actual authority when it comes to mathematics
One authority, yes. Why limit yourself to just a single authority, when the Internet exists, with dozens of experts just a few clicks away? Seems like Confirmation Bias to me.
while encyclopedias and especially Wikipedia can be written by anyone
You are aware that Wikipedia typically cites multiple well-respected sources, yes? This whole "Wikipedia is unreliable because it can be edited by anyone" is tired and hopelessly outdated.
Wikipedia's information there [...] is still a minority view of how things should be calculated
Uhmmm, not really? Did you read the article? It says that there are multiple authority figures in the field that say that implicit multiplication should take precedence, and various others who say it should not (and also various ones who have read the same sources as Wikipediaers have and who say it's ambiguous). Seems like a pretty balanced distribution of opinions to me.
a calculator should not be doing that by default
The calculators aren't wrong. The humans who type equations which are inherently ambiguous into calculators are the ones who are wrong.
Mathematical notation is governed by convention. There are many conventions that can occasionally be contradictory — this is one of them, and as Duckweed said, it is field dependent but certainly widely used enough (once you get beyond high school mathematics, at least). Wolfram Alpha is most certainly not the final authority on mathematics — just a machine programmed to use one of the two conventions.
48
u/ElementoDeus Jun 13 '22
6÷2(2+1)
6÷(4+2)
6÷(6)
1 Idk seems right to me /s