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

Technology

71953 readers
3405 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
[–] Melvin_Ferd@lemmy.world 1 points 17 hours ago* (last edited 17 hours ago) (1 children)

Order of operations is not a hard rule. It is a convention. It's something agreed upon but is it not something that is universally true.

Solve for X

X^2=4

[–] SmartmanApps@programming.dev 0 points 16 hours ago* (last edited 16 hours ago) (1 children)

Order of operations is not a hard rule

Yes it is.

It is a convention.

Left to right is a convention. Left Associativity is a hard rule. Left to right is a convention which obeys the rule of Left Associativity.

It’s something agreed upon

It's something that is a natural consequence of the definitions of the operators in the first place. As soon as Multiplication was defined in terms of Addition, that guaranteed we would always have to do Multiplication before Addition to get right answers.

is it not something that is universally true

Yes it is! All of Maths is universally true! 😂

Solve for X X^2=4

You know that's no longer an order of operations problem, right?

[–] Melvin_Ferd@lemmy.world 1 points 15 hours ago* (last edited 15 hours ago) (1 children)

What proof do you have that using a left to right rule is universally true?

From my understanding It's an agreed convention that is followed which doesn't make it a universal truth. If we're all doing it just to make things easier to understand, that implies we could have a right to left rule. It's also true that not all cultures right in the same way.

But here is an interesting quote from Florian Cajori in his book a history of mathematical notations.

Lastly here is an article that also highlights the issue.

https://scienceblogs.com/evolutionblog/2013/03/15/the-horror-of-pemdas

Some of you are already insisting in your head that 6 ÷ 2(1+2) has only one right answer, but hear me out. The problem isn’t the mathematical operations. It’s knowing what operations the author of the problem wants you to do, and in what order. Simple, right? We use an “order of operations” rule we memorized in childhood: “Please excuse my dear Aunt Sally,” or PEMDAS, which stands for Parentheses Exponents Multiplication Division Addition Subtraction.* This handy acronym should settle any debate—except it doesn’t, because it’s not a rule at all. It’s a convention, a customary way of doing things we’ve developed only recently, and like other customs, it has evolved over time. (And even math teachers argue over order of operations.)

[–] SmartmanApps@programming.dev 1 points 15 hours ago

What proof do you have that using a left to right rule is universally true?

From my understanding It’s an agreed convention that is followed

Read what I wrote again. I already said that left to right is a convention, and that Left Associativity is a rule. As long as you obey the rule - Left Associativity - you can follow whatever convention you want (but we teach students to do left to right, because they often make mistakes with signs when they try doing it in a different order, as have several people in this thread).

that implies we could have a right to left rule

You can have a right to left convention if the rule is Right Associativity.

It’s also true that not all cultures right in the same way

Yeah, I don't know how they do Maths - if they do it the same as us or if they just flip everything back-to-front (or top to bottom - I guess they would). In either case all the rules on top stay the same once the direction is established (like I guess exponents would now be to the top left not the top right? but in any case the evaluation of an exponent would stay the same).

But here is an interesting quote from Florian Cajori in his book a history of mathematical notations

Yeah, he's referring to the conventions - such as left to right - not the rule of Left Associativity, which all the conventions must obey. For a while Lennes was doing something different - because he didn't understand Terms - and was disobeying Left Associativity, (which meant his rules were at odds with everyone else), but his rule died out within a generation of his death,. Absolutely all textbooks now obey Left Associativity, same as before Lennes came along.

Lastly here is an article that also highlights the issue

Not really. Just another person who has forgotten the rules.

"as it happens, the accepted convention says the second one is correct"

No it isn't. The Distributive Law says the first is correct (amongst 4 other rules of Maths which also say the answer is only 1). The second way they did it disobeys The Distributive Law (and 4 other rules) and is absolutely wrong.