this post was submitted on 03 Dec 2023
389 points (95.6% liked)
196
16905 readers
1108 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
If you have any questions, feel free to contact us on our matrix channel.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
afair, multiplication was always before division, also as addition was before subtraction
It's BE(D=M)(A=S). Different places have slightly different acronyms - B for bracket vs P for parenthesis, for example.
But multiplication and division are whichever comes first right to left in the expression, and likewise with subtraction.
Although implicit multiplication is often treated as binding tighter than explicit. 1/2x is usually interpreted as 1/(2x), not (1/2)x.
a fair point, but aren't division and subtraction are non-communicative, hence both operands need to be evaluated first?
1 - 3 + 1 is interpreted as (1 - 3) + 1 = -1
Yes, they're non commutative, and you need to evaluate anything in parens first, but that's basically a red herring here.
ok, i guess you're right