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

196

16238 readers
1714 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
[–] queue@lemmy.blahaj.zone 24 points 9 months ago* (last edited 6 months ago) (52 children)

For anyone like me who has math as their worst subject: PEMDAS.

PEMDAS is an acronym used to mention the order of operations to be followed while solving expressions having multiple operations. PEMDAS stands for P- Parentheses, E- Exponents, M- Multiplication, D- Division, A- Addition, and S- Subtraction.

So we gotta do it in the proper order. And remember, if the number is written like 2(3) then its multiplication, as if it was written 2 x 3 or 2 * 3.

So we read 8/2(2+2) and need to do the following;

  • Read the Parentheses of (2 + 2) and follow the order of operations within them, which gets us 4.
  • Then we do 2(4) which is the same as 2 x 4 which is 8
  • 8 / 8 is 1.

The answer is 1. The old calculator is correct, the phone app which has ads backed into it for a thing that all computers were invented to do is inaccurate.

[–] amtwon@lemmy.world 13 points 9 months ago (1 children)

not to be That Guy, but the phone is actually correct... multiplication and division have the same precedence, so 8 / 2 * 4 should give the same result as 8 * 4 / 2, ie 16

[–] SmartmanApps@programming.dev 2 points 6 months ago

but the phone is actually correct

No, it's actually wrong.

8 / 2 * 4

It's 8/(2x4). You can't remove brackets unless there is only 1 term left inside.

load more comments (50 replies)