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

    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
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      edit-2
      7 months ago

      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
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        2
        ·
        edit-2
        7 months ago

        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
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          7 months 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. I personally feel like it is a bodge, and I would rather the correct solution for such a problem to be undefined.

          • 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.

        • until the ambiguity is removed

          There isn’t any ambiguity.

          all those answers are correct

          No, only 1 answer is correct, and all the others are wrong.

          Until the author gives me clarity then that sentence has multiple meanings. With math

          Maths isn’t English and doesn’t have multiple meanings. It has rules. Obey the rules and you always get the right answer.

          it doesn’t click for people that the equation is incomplete.

          It isn’t incomplete.

          • Melvin_Ferd@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            edit-2
            6 months ago

            Can you explain how that is? Like with an example?

            Math is exactly like English. It’s a language. It’s an abstraction to describe something. Ambiguity exists in math and in English. It impacts the validity of a statement. Hell the word statement is used in math and English for a reason.

            • Can you explain how that is? Like with an example?

              I’m not sure what you’re asking about. Explain what with an example?

              Math is exactly like English. It’s a language

              No it isn’t. It’s a tool for calculating things, with syntax rules. We even have rules around how to say it when speaking.

              It’s an abstraction to describe something

              And that something is the Laws of the Universe. 1+1=2, F=ma, etc.

              Hell the word statement is used in math and English for a reason

              You won’t find the word “statement” used in Maths textbooks. I’m guessing you’re referring to Expressions.

              • Melvin_Ferd@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                6 months ago

                Those rules are based on axioms which are used to create statements which are used within proofs. As far as I know statements are pretty common and are a foundational part of all math.

                Defining math as a language though is also going to be pointless here. It’s not really a yes or no thing. I’ll say it is a language but sure it’s arguable.

                And again laws are created using statements. I have plenty of textbooks that contain “statements”

                • Those rules are based on axioms

                  Nope! The order of operations rules come from the proof of the definitions in the first place. 3x4=3+3+3+3 by definition, therefore if you don’t do the multiplication first in 2+3x4 you get a wrong answer (having changed the multiplicand).

                  As far as I know statements are pretty common

                  And yet you’ve not been able to quote a Maths textbook using that word.

                  are a foundational part of all math

                  Expressions are.

                  It’s not really a yes or no thing

                  It’s really a no thing.

                  And again laws are created using statements

                  Not the Laws of Maths. e.g. The Distributive Law is expressed with the identity a(b+c)=(ab+ac). An identity is a special type of equation. We have…

                  Numerals

                  Pronumerals

                  Expressions

                  Equations (or Formula)

                  Identities

                  No statements. Everything is precisely defined in Maths, everything has one meaning only.

                  • Melvin_Ferd@lemmy.world
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    arrow-down
                    1
                    ·
                    edit-2
                    6 months ago

                    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

      • barsoap@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        edit-2
        7 months ago

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

        The solution accepted anywhere but in the US school system range from “Bloody use parenthesis, then” over “Why is there more than one division in this formula why didn’t you re-arrange everything to be less confusing” to “50 Hertz, in base units, are 50s-1”.

        More practically speaking: Ultimately, you’ll want to do algebra with these things. If you rely on “left to right” type of precedence rules re-arranging formulas becomes way harder because now you have to contend with that kind of implicit constraint. It makes everything harder for no reason whatsoever so no actual mathematician, or other people using maths in earnest, use that kind of notation.

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

          I fully agree that if it comes down to “left to right” the problem really needs to be rewritten to be more clear. But I’ve just shown why that “rule” is a common part of these meme problems because it is so weird and quite esoteric.

          • I fully agree that if it comes down to “left to right”

            It never does

            But I’ve just shown why that “rule” is a common part

            No you didn’t. You showed you didn’t understand the rules. Doing addition first for 10-1+1 is 10+1-1, not 10-(1+1). It literally means add all positive numbers together first, which are +10 and +1, as per Maths textbooks…

            Note in the above simplification of the coefficients we have 6-11+5-7+2=6+5+2-11-7=13-18=-5, and not, as you claim 6-(11+5)-(7+2)=6-16-9=-19

            because it is so weird and quite esoteric

            It’s a convention, not a rule, and as such can be completely ignored by those who understand the rules. See literal textbook example

            • HereIAm@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              5 months ago

              I know it’s not a rule, hence why I put it in quotation marks. I noted in another comment that, yes, the proper way is to group it as 1+(-2)+3 and you can do it in any order. What I meant with ““rule”” is the meme questions pray on people not understanding/remembering what the actual rules are or why “left to right” conventions exist.

              • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                edit-2
                5 months ago

                the proper way is to group it as 1+(-2)+3

                No it isn’t.

                you can do it in any order

                You can do it in any order anyway

                left to right 1-2+3=-1+3=2

                addition first 1+3-2=4-2=2

                subtraction first -2+1+3=-1+3=2

                right to left 3-2+1=1+1=2

                What I meant with ““rule”” is the meme questions pray on people not understanding/remembering what the actual rules are

                And you showed that you were one of them. Every answer you got other than 4 was wrong, because you didn’t understand the rules. spoiler alert: doing it in different orders never means add brackets to it. Addition first for 10-1+1 is 10+1-1, not 10-(1+1). See previous textbook example

                why “left to right” conventions exist

                They exist because people like you make mistakes when you try to do it in a different order. Either learn how the rules work or stop spreading disinformation. Well, you should stop spreading disinformation regardless.

        • The solution accepted anywhere but in the US school system range from “Bloody use parenthesis, then” over “Why is there more than one division in this formula why didn’t you re-arrange everything to be less confusing” to “50 Hertz, in base units, are 50s-1”.

          No, the solution is learn the rules of Maths. You can find them in Maths textbooks, even in U.S. Maths textbooks.

          so no actual mathematician, or other people using maths in earnest, use that kind of notation.

          Yes we do, and it’s what we teach students to do.

      • Right to left:

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

        Nope! 6 × 4 ÷ 2 × 3 ÷ 9 =4 right to left is 6 ÷ 9 x 3 ÷ 2 × 4 =4. You disobeyed the rule of Left Associativity, and your answer is wrong

        Multiplication first: (6 * 4) / (2 * 3) / 9

        Also nope. Multiplication first is 6 x 4 x 3 ÷ 2 ÷ 9 =4

        Left first: (24 / 6) / 9

        Still nope. 6 × 4 x 3 ÷ 2 ÷ 9 =4

        Right side first: 24 / (6 / 9)

        Still nope. 6 × 4 x 3 ÷ 9 ÷ 2 =4

        And finally division first: 6 * (4 / 2) * (3 / 9)

        And finally still nope. 6 ÷ 9 ÷ 2 x 4 x 3 =4

        Hint: note that I never once added any brackets. You did, hence your multiple wrong answers.

        It’s ambiguous which one of these is correct

        No it isn’t. Only 4 is correct, as I have just shown repeatedly.

        Hence the best method we have for “correct” is left to right

        It’s because students don’t make mistakes with signs if you don’t change the order. I just showed you can still get the correct answer with different orders, but you have to make sure you obey Left Associativity at every step.