I’m not sure if you read the post yet but I also have a short section about alternative notations which are less ambiguous or never ambiguous. RPN has the same issue as most notations that are never ambiguous namely that it’s hard to read - especially for big expressions.
This is a very nice piece that had so much information I did not know. Toward the top of the article I was wishing for footnotes, references or something that would indicate it was not just your opinion, but as I got further into the piece you provided so many great references. I thought the calculator manuals were particularly accessible and convincing. Thanks for a great read!
Honestly, I do disagree that the question is ambiguous. The lack of parenthetical separation is itself a choice that informs order of operations. If the answer was meant to be 9, then the 6/2 would be isolated in parenthesis.
It’s covered in the blog, but this is likely due to a bias towards Strong Juxtaposition rules for parentheses rather than Weak. It’s common for those who learned math into advanced algebra/ beginning Calc and beyond, since that’s the usual method for higher math education. But it isn’t “correct”, it’s one of two standard ways of doing it. The ambiguity in the question is intentional and pervasive.
I don’t know what you want, man. The blog’s goal is to describe the problem and why it comes about and your response is “Following my logic, there is no confusion!” when there clearly is confusion in the wider world here. The blog does a good job of narrowing down why there’s confusion, you’re response doesn’t add anything or refute anything. It’s just… you bragging? I’m not certain what your point is.
None of this has a point. We’re talking over a shitpost rant about common use of math symbols. Even the conclusion boils down to it being a context dependent matter of preference. I’m just disagreeing that the original question as posed should be interpreted with weak juxtaposition.
I originally had the same reasoning but came to the opposite conclusion. Multiplication and division have the same precedence, so I read the operations from left to right unless noted otherwise with parentheses. Thus:
6/2=3
3(1+2)=9
For me to read the whole of 2(1+2) as the denominator in a fraction I would expect it to be isolated in parentheses: 6/(2(1+2)).
Reading the blog post, I understand the ambiguity now, but i’m still fascinated that we had the same criticism (no parentheses implies intent) but had opposite conclusions.
Yeah. I don’t know if the ‘follow’ piece does anything useful for anyone.
But as a professional developer, I have found that my GitHub account now prevents me from getting asked FizzBuzz at interviews. So whichever bit is causing that nonsense to stop, I hope they keep.
Damn ragebait posts, it’s always the same recycled operation. They could at least spice it up, like the discussion about absolute value. What’s |a|b|c|?
What I gather from this, is that Geogebra is superior for not allowing ambiguous notation to be parsed 👌
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.
Yeah! That’s why I mentioned it, it was a fresh ambiguous notation problem that I’ve never encountered before. Discussions of “is it 1 or 9” get tiring quickly.
At least WA and others tell you how they interpret the input, instead of being a black box (until you get to the manuals). Even though it is obvious in hindsight, I didn’t get why two calculators would yield different results; thanks!
While I agree the problem as written is ambiguous and should be written with explicit operators, I have 1 argument to make. In pretty much every other field if we have a question the answer pretty much always ends up being something along the lines of “well the experts do this” or “this professor at this prestigious university says this”, or “the scientific community says”. The fact that this article even states that academic circles and “scientific” calculators use strong juxtaposition, while basic education and basic calculators use weak juxtaposition is interesting. Why do we treat math differently than pretty much every other field? Shouldn’t strong juxtaposition be the precedent and the norm then just how the scientific community sets precedents for literally every other field? We should start saying weak juxtaposition is wrong and just settle on one.
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.
The ambiguous ones at least have some discussion around it. The ones I’ve seen thenxouple times I had the misfortune of seeing them on Facebook were just straight up basic order of operations questions. They weren’t ambiguous, they were about a 4th grade math level, and all thenpeople from my high-school that complain that school never taught them anything were completely failing to get it.
I’m talking like 4+1x2 and a bunch of people were saying it was 10.
My years out of school has made me forget about how division notation is actually supposed to work and how genuinely useless the ÷ and / symbols are outside the most basic two-number problems. And it’s entirely me being dumb because I’ve already written problems as 6÷(2(1+2)) to account for it before. Me brain dun work right ;~;
programming.dev
Newest