this post was submitted on 03 Dec 2023
416 points (100.0% liked)

196

16458 readers
1 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] doctorcrimson 13 points 11 months ago (2 children)

I think when a number or variable is adjacent a bracket or parenthesis then it's distribution to the terms within should always take place before any other multiplication or division outside of it. I think there is a clear right answer and it's 1.

[–] derphurr@lemmy.world 13 points 11 months ago (2 children)

No there is no clear right answer because it is ambiguous. You would never seen it written that way.

Does it mean A÷[(B)(C)] or A÷B*C

[–] doctorcrimson 2 points 11 months ago* (last edited 11 months ago) (1 children)

It means

A ÷ B(C) which is equivalent to A ÷ (B*C)

I literally just explained this. The Parenthesis takes priority over multiplication and division outright.

Maybe
B*C = B(C)
But
A ÷ B(C) =! A ÷ B * C
[–] derphurr@lemmy.world 1 points 11 months ago* (last edited 11 months ago) (1 children)

No. It's ambiguous. In a math book or written by anyone that actually uses math, you don't have a "%"

You group stuff below the line, and you use parens and brackets to group things like (a + b) and (x)(y) so that it is not ambiguous.

2/xy would be almost always interpreted differently than 2/x(x+y) which is ambiguous and could mean (2/x)(x+y) or 2/[(x)(x+y)]

[–] doctorcrimson 1 points 11 months ago

You continue to say it's ambiguous, but the most commonly used convention on earth very clearly prioritizes parenthesis. It is not ambiguous.

[–] And009@reddthat.com 3 points 11 months ago

It's 16, addition in bracket comes first