857
6÷2(1+2) (programming.dev)
submitted 10 months ago* (last edited 10 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 :)

(page 6) 50 comments
sorted by: hot top controversial new old
[-] Lemmygradwontallowme@hexbear.net 1 points 10 months ago* (last edited 10 months ago)

The real question here is BODMAS or PEMDAS?

load more comments (7 replies)
[-] little_hermit@lemmus.org 1 points 10 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.

[-] jordanlund@lemmy.world 1 points 10 months ago

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".

load more comments (1 replies)
[-] comrade_pibb@hexbear.net 1 points 10 months ago

Hey this is interesting, thanks for sharing!

[-] wren@sopuli.xyz 1 points 10 months ago

Great read! Easy for everyone to understand, but also thorough. I loved the breakdown into the calculators functionality

load more comments (2 replies)
[-] dgmib@lemmy.world 1 points 10 months ago

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)
[-] ExLisper@linux.community 1 points 10 months ago
load more comments (1 replies)
load more comments
view more: ‹ prev next ›
this post was submitted on 12 Dec 2023
857 points (96.4% liked)

Memes

45413 readers
716 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