this post was submitted on 12 Dec 2023
827 points (96.3% liked)

Memes

45726 readers
870 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
827
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
[–] Alcatorda@lemmy.world 3 points 11 months ago (3 children)

Hi! Nice blog post. Since you asked for feedback I'll point out the one thing I didn't really understand. You explain the difference between the calculators by showing excerpts from the manuals and you highlight that in the first manual, implicit multiplication is prioritised. But the text you underlined only refers to implicit multiplication involving special expressions(?) like pi, e, sqrt or log, and nothing about "regular" implicit multiplication like 2(1+3). So while your photos of the calculator results are great proof that the two models use a different order of operations, to me the manuals were a bit confusing since they did not actually seem to prove your point for the example math problems you are discussing. Or maybe I missed something?

[–] wischi@programming.dev 2 points 11 months ago

You are right the manual isn't very clear here. My guess is that parentheses are also considered Type B functions. I actually chose those calculators because I have them here and can test things and because they split the implicit multiplication priority. Most other calculators just state "implicit multiplication" and that's it.

My guess is that the list of Type B functions is not complete but implicit multiplication with parentheses should be considered important enough for it to be documented.

[–] Pulptastic@midwest.social 1 points 11 months ago

Negative reviews for the calculator that does OOO wrong.

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

only refers to implicit multiplication involving special expressions(?) like pi, e, sqrt or log, and nothing about “regular” implicit multiplication like 2(1+3)

That was a very astute observation you made there! The fact is, for the very reason you stated, there is in fact no such thing as "implicit multiplication" - it is a term which has been made up by people who have forgotten Terms (the first thing you mentioned) and The Distributive Law (the second thing you mentioned). As you've noted., these are 2 different rules, and lumping them together as one brings exactly the disastrous results you might expect from lumping different 2 rules together as one...

See here for explanation of all the various rules, including textbook references and proofs.