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

Memes

45660 readers
1301 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
857
6÷2(1+2) (programming.dev)
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 

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
[–] [email protected] -4 points 11 months ago (10 children)

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.

[–] [email protected] 9 points 11 months ago (8 children)

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.

[–] [email protected] 0 points 8 months ago (2 children)

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.

[–] [email protected] 0 points 8 months ago (1 children)
[–] [email protected] 0 points 8 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).

load more comments (5 replies)
load more comments (6 replies)