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

196

667 readers
35 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
[–] cRazi_man@lemm.ee 5 points 11 months ago (1 children)

Ah damn it. It took me ages to find a calculator app that fits my needs..... And now I find out it works like the one on the right.

[–] Razzazzika@lemm.ee 8 points 11 months ago (1 children)

... the one on the right is correct.... that's a jank ass calculator on the left that doesn't know how to do order of operations 8/2×(2+2) 8/2x4 4x4 16

[–] SmartmanApps@programming.dev 1 points 7 months ago (1 children)

the one on the right is correct

No, it isn't.

8/2×(2+2)

...isn't the same thing as 8/2(2+2). You separated the term in the denominator, leading the (2+2) to get flipped into the numerator, hence wrong answer.

[–] Razzazzika@lemm.ee 1 points 7 months ago (1 children)

That would be 8/(2x(2+2)) if we were keeping it all in the denominator. Multiplication happens in the numerator if there are no parenthesis to distinguish it. If thr equation was written like this:

8


2x(2+2)

Then you would also be correct, but I have to respectfully disagree with your analysis.

[–] SmartmanApps@programming.dev 1 points 7 months ago* (last edited 7 months ago)

That would be 8/(2x(2+2)) if we were keeping it all in the denominator

(2x(2+2)) is the same thing as 2(2+2)

I have to respectfully disagree with your analysis

Which means you disagree with how Maths textbooks teach how to do this (see previous link).