421
submitted 2 years ago by Toes@ani.social to c/196@lemmy.blahaj.zone
you are viewing a single comment's thread
view the rest of the comments
[-] Annoyed_Crabby 2 points 2 years ago

So umm what's the correct one?

[-] Zagorath@aussie.zone 16 points 2 years ago

Ultimately it's ambiguous and bad. But most mathematicians (at a level higher than primary school education) use multiplication by juxtaposition—aka implicit multiplication—at a higher priority than division. BIDMAS, as you might have been taught in primary school, is an oversimplification that doesn't even account for the possibility of juxtaposition, because you didn't learn about that until secondary school.

Most mathematicians would use logic that lets you arrive at the answer of "1", while also saying it should have been written better. Brackets are cheap. Use them!

[-] Melkath@kbin.social 2 points 2 years ago

Please Excuse My Dear Aunt Sally

[-] ShortFuse@lemmy.world 2 points 2 years ago* (last edited 2 years ago)

If you believe multiplication goes before division then 1. 8 / (2 * 4)

If you believe multiplication and division are of equal importance 16. 8 / 2 * 4

SQL, Google, and I believe C++ and HLSL would say the latter: (16)

[-] SmartmanApps@programming.dev 1 points 1 year ago

If you believe multiplication goes before division then 1. 8 / (2 * 4)

That's not "multiplication" though - that's The Distributive Law. Multiplication refers literally to multiplication signs.

[-] TWeaK@lemm.ee 1 points 2 years ago

There's some academic debate on it, you'll hear different things. A hard interpretation of PEMDAS would say 16 is correct, however PEMDAS is fairly new and predated by algebra and implicit multiplication.

If you replace (2+2) with x:

8 / 2x = 4 / x = 4 / (2+2) = 1

Thus implicit multiplication takes priority over division. IMO, anyway.

Meanwhile:

8 / 2 * x = 4 * x = 4 * (2+2) = 16

Explicit multiplication follows PEMDAS, left to right for multiplication/division.

[-] SmartmanApps@programming.dev 1 points 1 year ago

what’s the correct one?

Yes, one is correct :-)

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

196

17884 readers
470 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS