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

Memes

45730 readers
895 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
858
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 :)

(page 6) 50 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago (13 children)

You state that the ambiguity comes from the implicit multiplication and not the use of the obelus.

I.e. That 6 ÷ 2 x 3 is not ambiguous

What is your source for your statement that there is an accepted convention for the priority of the iinline obelus or solidus symbol?

As far as I’m aware, every style guide states that a fraction bar (preferably) or parentheses should be used to resolve the ambiguity when there are additional operators to the right of a solidus, and that an obelus should never be used.

Which therefore would make it the division expressed with an obelus that creates the ambiguity, and not the implicit multiplication.

(Rest of the post is great)

load more comments (13 replies)
[–] [email protected] 1 points 11 months ago (1 children)

Interesting that Excel sees =6/2(1+2) as an invalid formula and will not calculate it (at least on mobile). =6/2*(1+2) returns 9 because it's executing the division and multiplication left to right (6/2=3*3=9).

Google Sheets (mobile) does't like it either and returns an error. =6/2*(1+2) also returns "9".

[–] [email protected] 1 points 9 months ago

Excel and Google are both wrong. In fact, Microsoft excels 😂in this area, with Excel, the Windows calculator, and MathSolver all getting it wrong in different ways! dotnet.social/@SmartmanApps/111164851485070719

[–] [email protected] 1 points 11 months ago

I would do the mighty parentheses first, and then the 2 that dares to touch the mighty parentheses, finally getting to the run-of-the-mill division. Hence the answer is One.

load more comments
view more: ‹ prev next ›