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.

^other^ ^rules^

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
[–] CheesyFox 7 points 1 year ago (22 children)

afair, multiplication was always before division, also as addition was before subtraction

[–] Pipoca 9 points 1 year ago (16 children)

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.

[–] CheesyFox 1 points 1 year ago (4 children)

a fair point, but aren't division and subtraction are non-communicative, hence both operands need to be evaluated first?

[–] Pipoca 2 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] CheesyFox 1 points 1 year ago

ok, i guess you're right

load more comments (2 replies)
load more comments (13 replies)
load more comments (18 replies)