833
6÷2(1+2) (programming.dev)
submitted 11 months ago* (last edited 11 months ago) by wischi@programming.dev to c/memes@lemmy.ml

https://zeta.one/viral-math/

I wrote a (very long) blog post about those viral math problems and am looking for feedback, especially from people who are not convinced that the problem is ambiguous.

It's about a 30min read so thank you in advance if you really take the time to read it, but I think it's worth it if you joined such discussions in the past, but I'm probably biased because I wrote it :)

you are viewing a single comment's thread
view the rest of the comments
[-] wischi@programming.dev 19 points 11 months ago

The calculator section is actually pretty important, because it shows how there is no consensus. Sharp is especially interesting with respect to your comment because all scientific Sharp calculators say it's 1. For all the other brands for hardware calculators there are roughly 50:50 with saying 1 and 9.

So I'm not sure if you are suggesting that thousands of experts and hundreds of engineers at Casio, Texas Instruments, HP and Sharp got it wrong and you got it right?

There really is no agreed upon standard even amongst experts.

[-] kogasa@programming.dev 6 points 11 months ago

Hi, expert here, calculators have nothing to do with it. There's an agreed upon "Order of Operations" that we teach to kids, and there's a mutual agreement that it's only approximately correct. Calculators have to pick an explicit parsing algorithm, humans don't have to and so they don't. I don't look to a dictionary to tell me what I mean when I speak to another human.

[-] fallingcats@discuss.tchncs.de 1 points 11 months ago* (last edited 11 months ago)

Thanks for putting my thoughts into words, that's exactly why I hate math. It was supposed to be the logical one, but since it only needs to be parsed by humans it failed at even that. It's just conventions upon conventions to the point where it's notably different from one teacher/professor to the next.

I guess you can tell why I went into comp-sci (and also why I'm struggling there too)

[-] SmartmanApps@programming.dev 0 points 9 months ago

there’s a mutual agreement that it’s only approximately correct.

No there isn't. I've never seen a single Year 7-8 Maths textbook that is in the slightest bit ambiguous about it. The Distributive Law has to literally always be applied (hence why it's a law). dotnet.social/@SmartmanApps/110819283738912144

[-] kogasa@programming.dev 0 points 9 months ago

The order of operations is not the same as the distributive law.

[-] SmartmanApps@programming.dev 0 points 9 months ago

The first step in order of operations is solve brackets. The first step in solving unexpanded brackets is to expand them. i.e. The Distributive Law. i.e. the ONLY time The Distributive Law ISN'T part of order of operations is when there's no unexpanded brackets in the expression.

[-] kogasa@programming.dev 1 points 9 months ago

The distributive law has nothing to do with brackets.

The distributive law can be written in PEMDAS as a(b+c) = ab + ac, or PEASMD as ab+c = (ab)+(ac). It has no relation to the notation in which it is expressed, and brackets are purely notational.

[-] SmartmanApps@programming.dev -1 points 9 months ago

The distributive law has nothing to do with brackets

BWAHAHAHA! Ok then, what EXACTLY does it relate to, if not brackets? Note that I'm talking about The Distributive LAW - which is about expanding brackets - not the Distributive PROPERTY.

a(b+c) = ab + ac

a(b+c)=(ab+ac) actually - that's one of the common mistakes that people are making. You can't remove brackets unless there's only 1 term left inside, and ab+ac is 2 terms.

ab+c = (ab)+(ac)

No, never. ab+c is 2 terms with no further simplification possible. From there all that's left is addition (once you know what ab and c are equal to).

brackets are purely notational

Yep, they're a grouping symbol. Terms are separated by operators and joined by grouping symbols.

[-] kogasa@programming.dev 1 points 9 months ago
[-] SmartmanApps@programming.dev 0 points 9 months ago

Noted that you were unable to tell me what The Distributive Law relates to (given your claim it's not brackets).

[-] kogasa@programming.dev 0 points 9 months ago

You are unhinged

[-] SmartmanApps@programming.dev -1 points 9 months ago

it shows how there is no consensus

Used to not be. Except for Texas Instruments all the others reverted to doing it correctly now - I have no idea why Texas Instruments persists with doing it wrong. As you noted, Sharp has always done it correctly.

There really is no agreed upon standard even amongst experts

Yes there is. It's taught in literally every Year 7-8 Maths textbook (but apparently Texas Instruments don't care about that).

[-] Perfide@reddthat.com -5 points 11 months ago

No, those companies aren't wrong, but they're not entirely right either. The answer to "6 ÷ 2(1+2)" is 1 on those calculators because that is a badly written equation and you(not literally you, to be clear) should feel bad for writing it, and the calculators can't handle it with their rigid hardcoded logic. The ones that do give the correct answer of 9 on that equation will get other equations wrong that it shouldn't be, again because the logic is hardcoded.

That doesn't change the fact that that equation worked out on paper is absolutely 9 based on modern rules of math. Calculate the parentheses first, you then have 6 ÷ 2(3). We could solve from here, but to make the point extra clear I'm going to actually expand this out to explicit multiplication. "2(3)" is the same as "2 x 3", so we can rewrite the equation as "6 ÷ 2 x 3". All operators now inarguably have equal precedence, which means the only factor left in which order to do the operations is left to right, and thus division first. The answer can only be 9.

[-] MeetInPotatoes@lemmy.ml 9 points 11 months ago

If you'd ever taken any advanced math, you'd see that the answer is 1 all day. The implicit multiplication is done before the division because anyone taking advanced math would see 2(1+2) as a term that must be resolved first. The answer still lies in the ambiguity of the way the problem is written though. If the author used fractions instead of that stupid division symbol, there would be no ambiguity. It's either 6/2 x 3 = 9 or [6/(2x3)] = 1. Comment formatting aside, if someone put 6 in the numerator, and then did or did NOT put all the rest in the denominator underneath a horizontal bar, it would be obvious.

TL;DR It's still a formatting issue, but 9 is definitely not the clear and only answer.

[-] SmartmanApps@programming.dev 1 points 8 months ago

If you’d ever taken any advanced math, you’d see that the answer is 1 all day

Don't need to do advanced Maths - every rule you need to know for this problem is taught in Year 7.

[-] MeetInPotatoes@lemmy.ml 1 points 8 months ago

"Always remember to solve using PEMDAS once you've used the distributive property!" Link%20and%20subtraction%20(S).)

(emphasis mine)

[-] SmartmanApps@programming.dev 0 points 8 months ago

And...? Not sure what your point is, but the link is VERY badly worded...

  1. The Distributive Law and The Distributive Property aren't the same thing - he's applying The Distributive Law, but mistakenly calling it The Distributive Property (a lot of people make that mistake). The latter is merely a property in Maths (like the commutative property, the associative property, etc.), the former an actual rule of Maths The Distributive Law
  2. Applying the Distributive Law - i.e. expanding brackets/parentheses - is part of solving brackets. i.e. the first step in BEDMAS/PEMDAS. There's no "once you've used", you've already started!
  3. As I already said, this is taught in Year 7, so I'm not sure what your point is?
[-] MeetInPotatoes@lemmy.ml 0 points 8 months ago

That you're still wrong? As I said, the true answer is that the problem is written poorly due to the obelus and thus is open to interpretation. You're entitled to your own interpretation since it's written poorly, I just find it pretty obviously less logical than multiplying using the distributive property first to resolve the term with the parentheses fully as you would in any advanced math.

Also, distributive law and distributive property are the same thing per Khan academy "The distributive property is sometimes called the distributive law of multiplication and division."

Wait till you hear that "i before e except after c" wasn't true either. It's wild that you think 7th grade math overrules grad school math though lol.

[-] SmartmanApps@programming.dev 1 points 8 months ago

That you’re still wrong?

About? You haven't pointed out anything that's wrong.

the problem is written poorly due to the obelus and thus is open to interpretation

Oh, you're one of those people. Good, maybe we can finally get an answer then (this was also talked about in the blog). What other interpretation of an obelus is possible other than division? People keep saying it's ambiguous, but no-one has ever said why (other than some stuff that makes no sense in the context, as explained in the blog)

The distributive property is sometimes called the distributive law of multiplication and division

Yes, and sometimes people call Koalas "Koala bears", but that doesn't mean they're bears. Now bearing that in mind, read again what Khan said - the page which is called "Distributive property explained", not "Distributive Law explained".

Wait till you hear that “i before e except after c” wasn’t true either

Wait till you hear that's not a rule of Maths.

It’s wild that you think 7th grade math overrules grad school math though

Umm, never said anything of the kind...

[-] SmartmanApps@programming.dev 0 points 9 months ago

The answer still lies in the ambiguity of the way the problem is written though

But it's not ambiguous, as per the reason you already gave.

If the author used fractions instead of that stupid division symbol

If you use fractions then the whole thing is a single term, if you use division it's 2 terms.

9 is definitely not the clear and only answer

1 is definitely the only answer.

[-] MeetInPotatoes@lemmy.ml 0 points 9 months ago
[-] SmartmanApps@programming.dev 0 points 9 months ago

"The obelus is treated differently,” Church said. "It could mean ratios, division or numerator and denominator, and these all tweak the meaning of the symbol.”

This is the only symbols I've ever seen used (but feel free to provide a reference if you know of any where it isn't - the article hasn't provided any references)...

Ratio is only ever colon.

Division is obelus (textbooks/computers) or slash (computers, though if it's text you can use a Unicode obelus).

Fraction is fraction bar (textbooks) or obelus/slash inside brackets (computers). i.e. (a/b).

[-] SmartmanApps@programming.dev 0 points 9 months ago

those calculators because that is a badly written equation

It's not badly written, and the reason Texas Instruments gets it wrong is right there in their manual (disobeys The Distributive Law).

modern rules of math

The order of operations rules haven't changed in at least 100 years, and more likely at least 400 years. Don't listen to Youtubers who can't cite a single Maths textbook.

“2(3)” is the same as “2 x 3”

No, it's the same as (2x3), as per The Distributive Law and Terms.

this post was submitted on 12 Dec 2023
833 points (96.4% liked)

Memes

45754 readers
964 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS