this post was submitted on 31 May 2025
215 points (90.6% liked)

Technology

72262 readers
3361 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] vithigar@lemmy.ca 6 points 1 month ago (32 children)

The same priority operations can be done in any order without affecting the result, that's why they can be same priority and don't need an explicit order.

6 × 4 ÷ 2 × 3 ÷ 9 evaluates the same regardless of order. Can you provide a counter example?

[–] HereIAm@lemmy.world 5 points 1 month ago* (last edited 1 month ago) (24 children)

So let's try out some different prioritization systems.

Left to right:

(((6 * 4) / 2) * 3) / 9
((24 / 2) * 3) / 9
(12 * 3) / 9
36 / 9 = 4

Right to left:

6 * (4 / (2 * (3 / 9)))  
6 * (4 / (2 * 0.333...))  
6 * (4 / 0.666...)  
6 * 6 = 36

Multiplication first:

(6 * 4) / (2 * 3) / 9  
24 / 6 / 9

Here the path divides again, we can do the left division or right division first.

Left first: 
(24 / 6) / 9  
4 / 9 = 0.444...

Right side first:  
24 / (6 / 9)  
24 / 0.666... = 36

And finally division first:

6 * (4 / 2) * (3 / 9)  
6 * 2 * 0.333...  
12 * 0.333.. = 4 

It's ambiguous which one of these is correct. Hence the best method we have for "correct" is left to right.

[–] Melvin_Ferd@lemmy.world 3 points 1 month ago* (last edited 1 month ago) (17 children)

Maybe I'm wrong but the way I explain it is until the ambiguity is removed by adding in extra information to make it more specific then all those answers are correct.

"I saw her duck"

Until the author gives me clarity then that sentence has multiple meanings. With math, it doesn't click for people that the equation is incomplete. In an English sentence, ambiguity makes more sense and the common sense approach would be to clarify what the meaning is

[–] HereIAm@lemmy.world 1 points 1 month ago (2 children)

100% with you. "Left to right" as far as I can tell only exists to make otherwise "unsolvable" problems a kind of official solution. I personally feel like it is a bodge, and I would rather the correct solution for such a problem to be undefined.

[–] SmartmanApps@programming.dev 0 points 5 days ago

100% with you. “Left to right” as far as I can tell only exists to make otherwise “unsolvable” problems a kind of official solution

It's not a rule, it's a convention, and it exists so as to avoid making mistakes with signs, mistakes you made in almost every example you gave where you disobeyed left to right.

[–] Robust_Mirror@aussie.zone 3 points 1 month ago (1 children)

It's so we don't have to spam brackets everywhere

9+2-1+6-4+7-3+5=

Becomes

((((((9+2)-1)+6)-4)+7)-3)+5=

That's just clutter for no good reason when we can just say if it doesn't have parentheses it's left to right. Having a default evaluation order makes sense and means we only need parentheses when we want to deviate from the norm.

[–] SmartmanApps@programming.dev 0 points 5 days ago (1 children)

It’s so we don’t have to spam brackets everywhere

No it isn't. The order of operations rules were around for several centuries before we even started using Brackets in Maths.

((((((9+2)-1)+6)-4)+7)-3)+5

It was literally never written like that

we only need parentheses when we want to deviate from the norm

That has always been the case

[–] Robust_Mirror@aussie.zone 0 points 4 days ago (1 children)

You're literally arguing nothing right now. THEY took the position we should have brackets defining the order in every single equation or otherwise have them as undefined TODAY. It doesn't matter when they were invented. Obviously it's never been written like that. They are the one arguing it SHOULD BE. I said that would be stupid vs following the left to right convention already established. You're getting caught up in the semantics of the wording.

What you inferred: they're saying brackets were always around and we chose left to right to avoid bracket mess.

What I was actually saying: we chose and continue to choose to keep using the left to right convention over brackets everywhere because it would be unnecessary and make things more cluttered.

And yes, that IS a position mathematicians COULD have chosen once brackets WERE invented. They could have decided we should use them in every equation for absolute clarity of order. Saying we should not do that based on tradition alone is a bad reason.

The "always been the case" argument could justify any legacy system. We don't still use Roman numerals for arithmetic just because they were traditional. Things DO change.

Ancient Greeks and Romans strongly resisted zero as a concept, viewing it as philosophically problematic. Negative numbers were even more controversial with many mathematicians into the Renaissance calling them "fictitious" or "absurd numbers." It took centuries for these to become accepted as legitimate mathematical objects.

Before Robert Recorde introduced "=" in 1557, mathematicians wrote out "is equal to" in words. Even after its introduction, many resisted it for decades, preferring verbal descriptions or other symbols.

I could go on but if you're going to argue why something shouldn't be the case, you should argue more than "it's tradition" or "we've done fine without it so far". Because they did fine with many things in mathematics until they decided they needed to change or expand it.

[–] SmartmanApps@programming.dev 1 points 4 days ago (1 children)

THEY took the position we should have brackets defining the order in every single equation or otherwise have them as undefined TODAY

Who's this mysterious "THEY" you are referring to, because I can assure you that the history of Maths tells you that is wrong. e.g. look in Cajori and you'll find the order of operations rules are at least 2 centuries older than the use of Brackets in Maths.,

It doesn’t matter when they were invented

The rules haven't changed since then.

They are the one arguing it SHOULD BE

...and watch Physicists and Mathematicians promptly run out of room on blackboards if they did.

You’re getting caught up in the semantics of the wording

No, you're making up things that never happened.

they’re saying brackets were always around and we chose left to right to avoid bracket mess

and that's wrong. Left to right was around before Brackets were.

we chose and continue to choose to keep using the left to right convention over brackets everywhere

and you're wrong, because that choice was made before we'd even started using Brackets in Maths, by at least a couple of centuries.

it would be unnecessary and make things more cluttered

They've always been un-necessary, unless you want to deviate from the normal order of operations.

They could have decided we should use them in every equation for absolute clarity of order

But they didn't, because we already had clarity over order, and had done for several centuries.

Saying we should not do that based on tradition alone is a bad reason.

Got nothing to do with tradition. Got no idea where you got that idea from.

Things DO change.

The order of operations rules don't, and the last change to the notation was in the 19th Century.

I could go on

and you'd still be wrong. You're heading off into completely unrelated topics now.

you should argue more than “it’s tradition” or “we’ve done fine without it so far”

I never said either of those things.

Because they did fine with many things in mathematics until they decided they needed to change or expand it

And they changed the meaning of the Division symbol sometime in the 19th Century or earlier, and everything has been settled for centuries now.

[–] Robust_Mirror@aussie.zone 1 points 4 days ago (1 children)

The "mysterious" they is HerelAm, the person I was replying to you ninny.

[–] SmartmanApps@programming.dev -1 points 4 days ago

The “mysterious” they is HerelAm, the person I was replying to you ninny

The person who couldn't even manage to get 10-1+1 correct when doing addition first 😂

load more comments (14 replies)
load more comments (20 replies)
load more comments (27 replies)