• vithigar@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    22 days 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
      ·
      edit-2
      22 days 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
        1
        ·
        edit-2
        22 days 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
          ·
          22 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. I personally feel like it is a bodge, and I would rather the correct solution for such a problem to be undefined.

      • barsoap@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        22 days 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
          ·
          22 days 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.