• marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      arrow-down
      1
      ·
      7 months ago

      Some people insist there’s no “correct” order for the basic arithmetic operations. And worse, some people insist the correct order is parenthesis first, then left to right.

      Both of those sets of people are wrong.

      • MotoAsh@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 months ago

        Hopefully you can see where their confusion might come from, though. PEMDAS is more P-E-MD-AS. If you have a bunch of unparenthesized addition and subtraction, left to right is correct. A lot of like, firstgrader math problems are just basic problems that are usually left to right (but should have some extras to highlight PEMDAS somewhere I’d hope).

        So they’re mostly telling you they only remember as much math as a small child that barely passed math exercizes.

        • DefederateLemmyMl@feddit.nl
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          7 months ago

          If you have a bunch of unparenthesized addition and subtraction, left to right is correct

          If you have a bunch of unparenthesized addition and subtraction, left to right doesn’t matter.

          1 + 2 + 3 = 3 + 2 + 1

          • KubeRoot@discuss.tchncs.de
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            7 months ago

            If you have a bunch of unparenthesized addition and subtraction, left to right doesn’t matter.

            Right, because 1-2-3=3-2-1.

              • KubeRoot@discuss.tchncs.de
                link
                fedilink
                English
                arrow-up
                0
                arrow-down
                2
                ·
                7 months ago

                I did not flip any signs, merely reversed the order in which the operations are written out. If you read the right side from right to left, it has the same meaning as the left side from left to right.

                Hell, the convention that the sign is on the left is also just a convention, as is the idea that the smallest digit is on the right (which should be a familiar issue to programmers, if you look up big endian vs little endian)

                • howrar@lemmy.ca
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  6 months ago

                  If that’s your idea of reversing the order, then you’re not talking about the same thing as SpaceCadet@feddit.nl. They’re talking about the order of operations and the associativity/commutativity property. You’re talking about the order of the symbols.

                • I did not flip any signs

                  Yes you did! 😂

                  merely reversed the order in which the operations are written out

                  No, merely reversing the order gives -3-2+1 - you changed the signs on the 1 and 3.

                  If you read the right side from right to left, it

                  Starts with -3, which you changed to +3

                  it has the same meaning as the left side from left to right

                  when you don’t change any of the signs it does 😂

                  Hell, the convention that the sign is on the left is also just a convention

                  Nope, it’s a rule of Maths, Left Associativity.

          • MotoAsh@piefed.social
            link
            fedilink
            English
            arrow-up
            0
            ·
            7 months ago

            True, but as with many things, something has to be the rule for processing it. For many teachers as I’ve heard, order of appearance is ‘the rule’ when commutative properties apply. … at least until algebra demands simplification, but that’s a different topic.

      • Some people insist there’s no “correct” order for the basic arithmetic operations.

        And those people are wrong

        And worse, some people insist the correct order is parenthesis first, then left to right

        As per Maths textbooks

        Both of those sets of people are wrong

        All Maths textbooks are wrong?? 😂

      • Petter1@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        1
        ·
        6 months ago

        Well, this is just a writing standard that is globally agreed on,

        The writing rules are defined by humans not by natural force
        (That one thing and another thing are two things, is a rule from nature, as comparison)

        • mindbleach@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          2
          ·
          6 months ago

          Save yourself the trouble - Smartman Apps is a crank. They categorically will not comprehend the difference between the notation we made up and how numbers work. Dingus keeps saying ‘animals can count’ like that proves parentheses-first is completely different! from distribution.

          Why’d Russel and Whitehead bother with the Principia Mathematica when they could just point to Clever Hans?

        • this is just a writing standard that is globally agreed on

          No, it’s a universal rule of Maths

          The writing rules are defined by humans not by natural force

          Maths is for describing natural forces, and is subject to those laws

          That one thing and another thing are two things, is a rule from nature

          Yep, there are even some animals who understand that, and all of Maths is based upon it.

      • SkyeStarfall@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        0
        arrow-down
        1
        ·
        7 months ago

        I mean, arithmetic order is just convention, not a mathematical truth. But that convention works in the way we know, yes, because that’s what’s… well… convention

        • I mean, arithmetic order is just convention

          Nope, rules arising from the definition of the operators in the first place.

          not a mathematical truth

          It most certainly is a mathematical truth!

          But that convention works in the way we know, yes, because that’s what’s… well… convention

          The mnemonics are conventions, the rules are rules

          • SkyeStarfall@lemmy.blahaj.zone
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            6 months ago

            The rules are socially agreed upon. They are not a mathematical truth. There is nothing about the order of multiple different operators in the definition of the operators themselves. An operator is simply just a function or mapping, and you can order those however you like. All that matters is just what calculation it is that you’re after

            • The rules are socially agreed upon

              Nope! Universal laws.

              They are not a mathematical truth.

              Yes they are! 😂

              There is nothing about the order of multiple different operators in the definition of the operators themselves

              That’s exactly where it is. 2x3 is defined as 2+2+2, therefore if you don’t do Multiplication before Addition you get wrong answers

              you can order those however you like.

              No you can’t! 😂 2+3x4=5x4=20, Oops! WRONG ANSWER 😂

              All that matters is just what calculation it is that you’re after

              And if you want the right answer then you have to obey the order of operations rules

              • SkyeStarfall@lemmy.blahaj.zone
                link
                fedilink
                English
                arrow-up
                1
                ·
                6 months ago

                That’s a very simplistic view of maths. It’s convention https://en.wikipedia.org/wiki/Order_of_operations

                Just because a definition of an operator contains another operator, does not require that operator to take precedence. As you pointed out, 2+3*4 could just as well be calculated to 5*4 and thus 20. There’s no mathematical contradiction there. Nothing broke. You just get a different answer. This is all perfectly in line with how maths work.

                You can think of operators as functions, in that case, you could rewrite 2+3*4 as add(2, mult(3, 4)), for typical convention. But it could just as well be mult(add(2, 3), 4), where addition takes precedence. Or, similarly, for 2*3+4, as add(mult(2, 3), 4) for typical convention, or mult(2, add(3, 4)), where addition takes precedence. And I hope you see how, in here, everything seems to work just fine, it just depends on how you rearrange things. This sort of functional breakdown of operators is much closer to mathematical reality, and our operators is just convention, to make it easier to read.

                Something in between would be requiring parentheses around every operator, to enforce order. Such as (2+(3*4)) or ((2+3)*4)

                • That’s a very simplistic view of maths

                  The Distributive Law and Arithmetic is very simple.

                  It’s convention

                  Nope, a literal Law. See screenshot

                  https://en.wikipedia.org/wiki/Order_of_operations

                  Isn’t a Maths textbook, and has many mistakes in it

                  Just because a definition of an operator contains another operator, does not require that operator to take precedence

                  Yes it does 😂

                  2+3x4=2+3+3+3+3=14 by definition of Multiplication

                  2+3x4=5x4=20 Oops! WRONG ANSWER 😂

                  As you pointed out, 2+34 could just as well be calculated to 54 and thus 20

                  No, I pointed out that it can’t be calculated like that, you get a wrong answer, and you get a wrong answer because 3x4=3+3+3+3 by definition

                  There’s no mathematical contradiction there

                  Just a wrong answer and a right one. If I have 1 2 litre bottle of milk, and 4 3 litre bottles of milk, even young kids know how to count up how many litres I have. Go ahead and ask them what the correct answer is 🙄

                  Nothing broke

                  You got a wrong answer when you broke the rules of Maths. Spoiler alert: I don’t have 20 litres of milk

                  You just get a different answer

                  A provably wrong answer 😂

                  This is all perfectly in line with how maths work

                  2+3x4=20 is not in line with how Maths works. 2+3+3+3+3 does not equal 20 😂

                  add(2, mult(3, 4)), for typical

                  rule

                  But it could just as well be mult(add(2, 3), 4), where addition takes precedence

                  And it gives you a wrong answer 🙄 I still don’t have 20 litres of milk

                  And I hope you see how, in here, everything seems to work just fine

                  No, I see quite clearly that I have 14 litres of milk, not 20 litres of milk. Even a young kid can count up and tell you that

                  it just depends on how you rearrange things

                  Correctly or not

                  our operators is just convention

                  The notation is, the rules aren’t

                  Something in between would be requiring parentheses around every operator, to enforce order

                  No it wouldn’t. You know we’ve only been using brackets in Maths for 300 years, right? Order of operations is much older than that

                  Such as (2+(3*4))

                  Which is exactly how they did it before we started using Brackets in Maths 😂 2+3x4=2+3+3+3+3=14, not complicated.

                  • SkyeStarfall@lemmy.blahaj.zone
                    link
                    fedilink
                    English
                    arrow-up
                    0
                    ·
                    6 months ago

                    I mean, it is pretty clear here that you do not really understand the purpose of notation, nor what maths is. Notation is just a constructed language to convey a mathematical idea, it’s malleable

                    And yeah, it’s easy to just say “this page is wrong!” without any further argument. Nothing you referenced proved the convention as law, and neither is there any mathematical basis for any proof, because it simply is nonsensical to “prove” a notation. Have another source for this being convention https://www.themathdoctors.org/order-of-operations-why/ or https://math.stackexchange.com/questions/884765/mathematical-proof-for-order-of-operations. If you want a book about this, then there’s https://en.wikipedia.org/wiki/Bronshtein_and_Semendyayev that is cited by wikipedia. I’m sure you could also find stuff about this in a set theory book. Though good luck understanding them without sufficient experience in high-level maths

                    Really though, maths is so much more than “3+5=8 because that’s the correct answer!” But why is it the correct answer? In what context? What is the definition of addition? How can you prove that 1+1=2 from fundamental axioms? This is harder to answer than you might think.

        • marcos@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          arrow-down
          1
          ·
          7 months ago

          Social conventions are real, well defined things. Some mathematicians like to pretend they aren’t, while using a truckload of them; that’s a hypocritical opinion.

          That’s not to say you can’t change them. But all of basic arithmetic is a social convention, you can redefine the numbers and operations any time you want too.

          • Social conventions are real, well defined things

            So are the laws of nature, that Maths arises from

            Some mathematicians like to pretend they aren’t, while using a truckload of them; that’s a hypocritical opinion

            No, you making false accusations against Mathematicians is a strawman

            That’s not to say you can’t change them

            You can change the conventions, you cannot change the rules

            But all of basic arithmetic is a social convention

            Nope, law of nature. Even several animals know how to count.

            you can redefine the numbers and operations any time you want too

            And you end up back where you started, since you can’t change the laws of nature