Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@MammaNeedHummus They both agreed on that. And they still didn't agree on the answer ππ
-
Trying to Google why we have the BIDMAS order... So confused!
Why BIDMAS!!!!!! -
iiii92192yThere's no special order. Multiplication and division have the same order.
Unless you assign a special order for omitted multiplication there's nothing to argue about -
Never really got the point of these. You could spend all day arguing about the technicalities of BODMAS, or you could just use appropriate brackets to avoid an argument and make it clearπ€·βοΈ
-
That's because nobody actually uses the ÷ operator instead of a fraction unless they're deliberately trying to confuse people (or entering the equation into a simple calculator, I guess).
-
iiii92192y@MammaNeedHummus I mean that the acronym makes it confusing by assigning various order to multiplicative operations and to additive operations, while the order inside each of that group is identical.
And to be really nitpicky, in algebra there's no division but multiplication by a number with exponent -1, and no subtraction but addition of a negative number. π So the acronym becomes simpler: BEMA - brackets, exponent, multiplication, addition -
iiii92192y@PotatoCookie there's really no argument at all. Just depends on a preposition of whether implicit multiplication in an expression has a higher order than explicit one.
If it does have higher order, the answer is 1
If it does not, then the answer is 9
And the above-mentioned acronym helped jack shit, because it does not mention implicit multiplication in the order -
@iiii I'll visualize my colleagues arguments in TeX, just a minute.
I'm confident the answer is 9, as I interpret the expression as:
6÷2(2+1)
6 divided by 2 times brackets 2 plus 1 close brackets
6 divided by 2 times 3
3 times 3
9
(New comment with "written" colleague argument in a minute, give me a moment π) -
@iiii Here's his solution visualized.
His point basically was that "÷" is a written fraction and that ":" should be used if it is an "inline" fraction, and thus the solution is as in the graphical equation and not 9.
I don't know how I feel about that but he was adamant. -
iiii92192y@PotatoCookie yup, he assumed that implicit multiplication has higher precedence
I would argue that a slash would be an "inline fraction" rather than that weird sign. But even then the brackets are mandatory as there is no common rule for such notation, unlike common rules for algebraic operations precedence (exponentiation, multiplication, addition) which save a huge ton if brackets of applied. -
iiii92192y@PotatoCookie btw, I remember reading a manual for some Casio calculator which explicitly states that it indeed has a special order for implicit multiplication to save on brackets.
So that specific model will yield 1 with this expression -
C0D4681382y@PotatoCookie both 1 and 9 require an assumption to be made without supporting brackets.
So, 42 must be the answer.
https://en.wikipedia.org/wiki/... -
@C0D4 Nice one! Went right over my head π
Was a good joke, my bad for not getting it on this one π -
@kiki I agree with your solution however the answer 1 (scroll up a bit) is correct in some nuanced way, mainly a discussion on proper notation.
I haven't used Lisp yet. Or well yes I do for my spacemacs config but not in a really "use" way. -
kiki353252y@PotatoCookie yeah that conventional elementary school math notation is outdated and sometimes confusing. Lisp-style notation eliminates the confusion entirely and makes things clear
-
kiki353252y@MammaNeedHummus @PotatoCookie BIDMAS is just another “five tomatoes” (five-two-eight-o) memo crap for imperial system. Those are random, outdated and confusing.
-
@kiki I'm not American so I don't use BIDMAS or the other acronyms however I understand their meaning and agree they are confusing and inadequate.
-
I love how this type of question always invokes the discussion around "What is the solution for the ambiguous problem?", while the more valuable question is: "How do we write the problem statement in a non-ambiguous way?".
-
@kiki interestingly, that's almost exactly the opposite of reverse Polish notation (RPN) used especially in HP notation.
-
kiki353252y@iiii I prefer systems and notations that don’t need intricate manuals on how to use them
-
C0D4681382y@iiii again, your assuming people made it past high school math and know the standards.
Related Rants
-
velian11I just learned that a web application I've been developing for the last six months will only be live for three...
-
zaaach5This is the most intense build message I've ever read
-
Christine5I'm starting a new job next week so I don't currently have a desk, but my boyfriend loves the cross stitched Y...
6÷2(2+1)
Colleagues were in a heated argument over this one. π
rant
suffering
braindead