wischi

joined 1 year ago
[–] wischi@programming.dev 2 points 11 months ago* (last edited 11 months ago) (10 children)

Same priority operations are solved from left to right. There is not a single credible calculator that would evaluate "6 / 2 * 3" to anything else but 9.

But I challenge you to show me a calculator that says otherwise. In the blog are about 2 or 3 dozend calculators referenced by name all of them say the same thing. Instead of a calculator you can also name a single expert in the field who would say that 6 / 2 * 3 is anything but 9.

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

I tried to be careful to not suggest that scientist only use strong juxtaposition. They use both but are typically very careful to not write ambiguous stuff and practically never write implicit multiplications between numbers because they just simplify it.

At this point it's probably to late to really fix it and the only viable option is to be aware why and how this ambiguous and not write it that way.

As stated in the "even more ambiguous math notations" it's far from the only ambiguous situation and it's practically impossible (and not really necessary) to fix.

Scientist and engineers also know the issue and navigate around it. It's really a non-issue for experts and the problem is only how and what the general population is taught.

[–] wischi@programming.dev 5 points 11 months ago (2 children)

Your example with the absolute values is actually linked in the "Even more ambiguous math notations" section.

Geogebra has indeed found a good solution but it only works if you input field supports fractions and a lot of calculators (even CAS like WolframAlpha) don't support that.

[–] wischi@programming.dev 4 points 11 months ago (1 children)

Sorry but I don't follow. Did you read the blog post?

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

Did you read the blog post?

[–] wischi@programming.dev 11 points 11 months ago* (last edited 11 months ago) (1 children)

👍 That was actually one of the reasons why I wrote this blog post. I wanted to compile a list of points that show as clear as humanity possible that there is no consensus here, even amongst experts.

That probably won't convince everybody but if that won't probably nothing will.

[–] wischi@programming.dev 13 points 11 months ago (4 children)

In a scientific context it's actually very rare to run into that issue because divisions are mostly written as fractions which will completely mitigate the issue.

The strong implicit multiplication will only cause ambiguity after a division with inline notation. Once you use fractions the ambiguity vanishes.

In practice you also rarely see implicit multiplications between numbers but mostly between variables or variables and their coefficients.

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

Now you changed it to an explicit multiplication. The ambiguity only comes from the implicit multiplication after a division, that's when the interpretation can be ambiguous. That's what the blog post really is about.

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

If you are not kidding, can you show your steps I can try to help you, but I can't currently think of a way how you'd end up with 15.

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

Thank you very much 🫶. No it's not annoying at all. I'm very grateful not only for the fact that you read the post but also that you took the time to point out issues.

I just fixed it, should be live in a few minutes.

[–] wischi@programming.dev 5 points 11 months ago (1 children)

🤣 I'm not sure if you read the post but I also wrote about that (the paragraph right before "What about the real world?")

view more: ‹ prev next ›