• Buddahriffic@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    I guess the joke is that it wasn’t an ambiguous expression in the first place and that pedmas/bedmas wasn’t the issue, or rather using just it here is the problem?

    When you have multiplication expressed as numbers joined without a symbol, that takes precedence at the current layer, where layers are created using brackets, fraction symbols, superscript exponents and concatenated multiplies.

    I’m not sure this resolves all ambiguity, but it simplifies the rule to just doing multiplication/division before addition/subtraction. It seems simple enough in my mind, so I’d need to see a counter example if it does break down.

    Though I hate how mainstream math problems/puzzles always end up being an order of operations problem, which I’d argue isn’t even math but more of a metamath thing. If you’re using math to solve a real problem, the correct order of operations will be determined by logic, not any conventions.

    Like if it takes you 5 seconds to get in your car and 12 seconds per km traveled, and 5 seconds to get out of your car, if you multiply the 10 seconds to get in or out by the distance, you’ll have a wrong answer. It’ll always be distance traveled in km times 12 seconds/km plus the 10 seconds, and the math works on the units as well as the numbers to show you did it in a way that makes sense.

  • TotallyWorthLife@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    5 hours ago

    I was taught to do

    • Brackets
    • Division and multiplication left to right
    • Addition and subtraction left to right

    There should be a fucking ISO for this shit tbh

    • Mistic@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      3 hours ago

      Let me just, ahem

      1-2+3/(3+3)×2+3×6/3 = 1-2+3/(3+3)×2+1×6 = 1-2+3/(3+3)×2+6 = 7-2+3/(3+3)×2 = 7-2+3/(6+6) = 7-2+(1/2+1/2) = 5+(1/2+1/2) = 5+1=6

      Ahh, yes, DMAMDSBA :P

      Let’s just say BODMAS/PEMDAS isn’t all end-all be-all. They’re good, but there’s also better

      For those interested, see: basic number properties

  • AHemlocksLie@lemmy.zip
    link
    fedilink
    arrow-up
    36
    ·
    16 hours ago

    The P in PEMDAS just means resolve what’s inside the parentheses first. After that, it’s just simple multiplication with adjacent terms, and multiplication and division happen together left to right.

    6÷2(1+2)

    6÷2(3)

    3(3)

    9

    • Mistic@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      3 hours ago

      Usually, no sign before the bracket means juxtaposition. Scientific calculators do account for it (not all, tho), while regular ones may not.

      So 2(1+2) is really (2+4)

      Compare 2/2x and 2/2×X where x is (1+2)

      The first is 2/(2+4)=1/3, the second is (2/2)×(1+2)=3

      Basically, either 1 or 9 can be considered correct. And yes, it’s ambiguous.

      Also, there’s no real rule about solving left to right due to associative and commutative properties: 1×2×3 = 1×(2×3) = (1×2)×3 = 3×1×2 = 2×1×3 = 6

    • mic_check_one_two@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      3 hours ago

      This is actually a generational thing. Millennials were taught “PEMDAS”:

      1. Parenthesis
      2. Exponent
      3. Multiplication
      4. Division
      5. Addition
      6. Subtraction

      But younger generations have been taught “BEDMAS” instead:

      1. Brackets
      2. Exponent
      3. Division
      4. Multiplication
      5. Addition
      6. Subtraction

      Notably, Division and Multiplication are swapped on PEMDAS and BEDMAS, to make this “both happen at the same time” more straightforward. But that only applies if the entire operation can happen at the same time.

      For instance, let’s say 6/2(3) compared to 6÷2(3). At first glance, they both appear to be the same operation. But in the former, the 6 dividend would be over the entire 2(3) divisor. Which means you would need to simplify the divisor (by resolving the multiplication of 2•3) before you divide. So the former would simplify to 6/6=1, while the latter would divide first and become 3(3)=9.

      Technically, if you wanted to be completely clear, you would write it using multiple parenthesis as needed. For instance, you would write it as either:
      (6÷2)(3)=9 or 6÷(2(3))=1 to avoid the ambiguity. Then it wouldn’t matter if you’re using PEMDAS or BEDMAS.

    • rapchee@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      4 hours ago

      would you say the same thing if the division was written out like a line under 2(3) and under that 6
      idk how this’ll come out but something like this:
      2(1+2)
      -----------
      6

      edit : wow i did a formatting thing
      edit2: i got it (ish)

      • AHemlocksLie@lemmy.zip
        link
        fedilink
        arrow-up
        2
        ·
        2 hours ago

        In that case, I’d say the answer is 1. Top and bottom are each resolved to the fullest extent possible before dividing top by bottom. It’s equivalent to (top)÷(bottom), but it’s clearer and preferable if you can easily format that way in my opinion, just harder on a computer.

      • Reyali@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 hours ago

        I think that’s why people are complaining about the division sign.

        It’s been decades since I took a math class so I am definitely not the right person to explain things, but I am using technology to confirm my understanding of the various notations:

        So yeah, if you put 6 over a denominator of 2(1+2), the answer is different (1) because the equation is different. But if you write it out literally, it would be 6 over 2 times (1+2).

        What you wrote swapped the denominator to make it 2(1+2)÷6, which will always be 1.

    • AHemlocksLie@lemmy.zip
      link
      fedilink
      arrow-up
      8
      arrow-down
      2
      ·
      16 hours ago

      Only if you forget that multiplication happens left to right and that a(b) is simply a different way to write a×b with no other extra steps or considerations. The P in PEMDAS just means resolve what’s INSIDE the parentheses first.

      • janAkali@lemmy.4d2.org
        link
        fedilink
        arrow-up
        4
        arrow-down
        2
        ·
        8 hours ago

        That only works if everyone agrees with you, which is clearly not true. In academic math, there’s a thing called juxtaposition. It mostly exists because math people are lazy, so instead of putting parentheses around statement e.g. 5+(2*x) they’ll just write 5+2x.

        This is fine as long as you know the context of that expression. If you take it out of the context and just ask any person what is the right order of operations - it becomes ambiguous. Because some people know PEMDAS. And other people know that PEMDAS is just a simplification for middle school, when real math notation is messy, non-standard and requires a lot of local domain knowledge.

          • TotallyWorthLife@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            4 hours ago

            I think the issue comes with “division and multiplication”, and “addition and subtraction” Here, I see people saying “Brackets/Parenthesis > Division > Multiplication > Subtraction > Addition” when I was taught “Brackets/Parenthesis > Division or multiplication, left to right > Subtraction or addition, left to right”

        • ITGuyLevi@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          7 hours ago

          2x would be the multiplication, as we go left to right you would do the multiplication, then go back and do the addition. In what world would 2x not mean 2 multiplied by the value of x?

          Its the cleanest thing ever when people understand the basics of math (like what symbol, or lack there of, means what).

        • AHemlocksLie@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          8 hours ago

          I think it’s a little different when you’re working with variables. A variable with a coefficient is generally treated more as a single unit compared to two plain constants being operated on in some way. It’s an incomplete operation since there’s missing information.

    • Reyali@lemmy.world
      link
      fedilink
      arrow-up
      55
      ·
      1 day ago

      I’m guessing confusion is coming from those taking PEMDAS literally as that order? Rather than PE(M|D)(A|S), like it’s supposed to be?

      • cattywampas@lemmy.world
        link
        fedilink
        arrow-up
        32
        arrow-down
        1
        ·
        1 day ago

        It’s also convoluted by the notation of the multiplication. When it’s written like this, many assume that you need to resolve that term first since it involves parentheses.

      • FishFace@piefed.social
        link
        fedilink
        English
        arrow-up
        15
        arrow-down
        1
        ·
        1 day ago

        It’s also because writing multiplication without a symbol creates a tightly bound visual unit that is typically evaluated before other things. If you see an exercise like, “what is 4x²/2x” most people answer “2x” not “2x³”. But this convention is rarely taught explicitly, so it’s ripe for engagement bait.

        • 0ops@piefed.zip
          link
          fedilink
          English
          arrow-up
          9
          arrow-down
          1
          ·
          1 day ago

          tightly bound visual unit

          I think you nailed it on the head. The expression isn’t technically ambiguous, there’s exactly one solution, and neither is the notation incorrect, just unconventional. In this case though, forgoing convention makes the expression typographically misleading. Hence a reason why we have these conventions for writing out expressions in the first place: to visually reinforce the order of operations thereby making expressions as easy to read as possible. So it’s not written wrong per se, just unnecessarily confusingly.

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          6
          arrow-down
          1
          ·
          1 day ago

          There’s a reason why the conventional division symbol requires grouping its terms.

          If you see an exercise like that, the exercise is bad and your teacher must be educated. Now, try putting that into a computer language and see what comes out.

          • FishFace@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 day ago

            I’m talking about exercises in textbooks, and you can find enough examples that writing them off as “the exercise is bad” is not really a good enough response.

            The only way the exercise is bad is if it causes confusion in the people who are using the textbook. Those students have been exposed to the conventions of the textbook in question; they’re not people who were brought up on some other convention. You do see inline division and the vast majority of people interpret an expression like that above the way I said, so it’s not in practice confusing.

            It’s not realistic to demand that every textbook uses the same conventions. It is realistic to demand that they lay out such conventions explicitly, which they unfortunately don’t.

            • marcos@lemmy.world
              link
              fedilink
              arrow-up
              1
              arrow-down
              1
              ·
              1 day ago

              So what? Those books are bad, at least on this specific way. They should be fixed.

              It’s perfectly realistic to demand that teachers only use good books. Textbooks should explain things, not confuse.

    • BurntWits@sh.itjust.works
      link
      fedilink
      arrow-up
      7
      ·
      24 hours ago

      I was taught BEDMAS in school, so slightly different order. I was also taught that DM and AS are not specifically in that order, but rather left to right of the equation, in the same lesson. I’m not sure why some schools aren’t doing it that way.

  • ☭SaltyIcetea☭@lemmy.ml
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    edit-2
    6 hours ago

    my calculator disagrees.

    and i would too, this is basically
    6÷2(1+2) = 6÷2×(1+2) = 6÷2×3

    while you resolve brackets first, you still go left to right. you would get 1 if you did
    6÷(2×(1+2))

    the issue is the missing multiplication sign between the 2 and the brackets, thats why i always write them even if it is not strictly required

    • ChaoticNeutralCzech@feddit.org
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 hours ago

      CASIO calculators say 1, and I think it’s more intuitive with “÷2π” being equivalent to “÷(2×π)” rather than “÷2×π”. It took me a while to figure out why my results were almost but not quite one order of magnitude wrong after I was forced to switch to TI.

    • morphballganon@mtgzone.com
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      7
      ·
      16 hours ago

      you still go left to right

      Unless there’s implied multiplication, which there is. Then you do that before the explicit division.

    • YiddishMcSquidish@lemmy.today
      link
      fedilink
      English
      arrow-up
      9
      ·
      1 day ago

      I’m my head cannon, I imagine it as a /. Where the left is the top of a fraction, and the right the bottom. This only works in very simple equations though.

  • yermaw@sh.itjust.works
    link
    fedilink
    arrow-up
    30
    arrow-down
    1
    ·
    1 day ago

    We discovered mathematics, the unflinching language of reality itself, and then managed to make it ambiguous.

    If i was an alien id give humanity a big hair-tussle like a dog.

  • Pennomi@lemmy.world
    link
    fedilink
    English
    arrow-up
    52
    arrow-down
    1
    ·
    1 day ago

    I don’t think I ever used a divide symbol like that beyond elementary school. In practice always use fraction style notation for division because it’s not ambiguous or a gotcha.

    • neatchee@piefed.social
      link
      fedilink
      English
      arrow-up
      31
      ·
      1 day ago

      This is the correct answer and it drives me crazy how often this comes up.

      As another user commented, division and subtraction are just syntactic flavor for multiplication and addition, respectively. Division is a specific type of multiplication. Subtraction is a specific type of addition.

      And so there is a reason mathematicians do not use the division symbol (➗): it is ambiguous as to which of the following terms are in the divisor and which are part of the next non-divisor term.

      In other words, the equation as written is a lossy representation of whatever actual equation is being described.

      tl;dr: the equation as written provides insufficient information to determine the correct order of operations. It is ambiguous notation and should not be used.

      • Sadbutdru@sopuli.xyz
        link
        fedilink
        arrow-up
        2
        ·
        17 hours ago

        division and subtraction are just syntactic flavor for multiplication and addition

        Can you tell me a bit more about how you mean this? I searched a bit but only basic primary school level resources about the relationship between addition and subtraction came up.

        Do you mean like subtraction is just adding a negative number, and division is just multiplication by the inverse of a number? In that case I don’t really see how it simplifies things much because negatives and inverses still need as much definition. Or are you talking about bit-wise operations like a computer would use to do these things?

        • carmo55@lemmy.zip
          link
          fedilink
          arrow-up
          4
          ·
          14 hours ago

          I believe they do mean the fact that subtraction is just adding the negative and division is just multiplying by the inverse. You can look up field axioms to see how real arithmetic is really defined. It’s much more convenient to have two operations instead of four.

        • fafferlicious@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          12 hours ago

          The other commenter is correct, but another way to think or visualize is that any subtraction or division operation can be understood as an addition or multiplication.

          X - 5 = X + (-5)

          X / 5 = X * (1/5)

          You can think of subtraction and division not being distinct or separated from addition and multiplication; instead, they’re just a shortcut notation in mathematics because everyone was tired of having to write extra characters.

          Figuratively, at least.

        • neatchee@piefed.social
          link
          fedilink
          English
          arrow-up
          2
          ·
          edit-2
          12 hours ago

          Addition asks “What do you get when you combine these two numbers?”

          Subtraction asks “What do you need to combine with this number to get this result?”

          Multiplication asks “What do you get if you add this number to itself this many times?”

          Division asks “How many times do you need to add this number to itself to get this result?”

          In many ways, all of these operations are syntactic flavor for addition. Subtraction is addition in reverse. Multiplication is repetitive addition. Division is repetitive addition in reverse. Exponents are recursive repetition of repetitive addition. And so on.

          Look into the axiomatic proof of 1+1=2. It will shed some light on how mathematics is just complex notation for very, very simple concepts at scale.

    • Otter@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      Yup, I found an old comment of mine but unfortunately that post was deleted. The numbers are different but its the same riddle

      I think the confusion is in the way it’s displayed. The notation in the comic is ambiguous, where the division is shown as a symbol, while the multiplication is implied with the brackets, so some people see the question as 8/(2*(2+2))=1, while others see it as 8/2*(2+2).

      For the later, my understanding is that multiplication and division actually have equal priority and are solved left to right (rather than an explicit order as PEDMAS and BEDMAS seem to suggest). So the second interpretation would give 8/2*(2+2)=8/2*(4)=4*4=16

      The reason this isn’t a problem more often is because

      • math questions should be written unambiguously, using symbols everywhere and fraction bars
      • in real life problems, there is a certain order in which you manipulate the numbers, and we can use correct notation (with an excessive number of brackets if needed) to keep it crystal clear
    • KC_Royalz@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      I hate math, my teacher taught is as first in last out and to this day I still get confused. The answer is 9 right?

      • remon@ani.social
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        Yes, at least by the most common agreed on convention. Almost any mathematician, programming language, search engine or spreadsheet software will say it’s 9. It is for all intents and purposes the right answer.

        • carmo55@lemmy.zip
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          14 hours ago

          There is no right answer. It just depends on convention. It’s like color vs colour, neither has been shouted down from the heavens to be the only way to write something, it depends on culture.

          • remon@ani.social
            link
            fedilink
            arrow-up
            1
            ·
            12 hours ago

            There very much is an agreed on convention, some people are just not using it and that is entirely their problem.

      • It can be both depending on how you handle operator precendence.

        PEMDAS definitely doesn’t result in 1, but in 9, since under PEMDAS multiplication and division have the same priority (and thus should resolve left-to-right). So, you should resolve to 9 (6/2(2+1) => 6/2(3) => 6/2*3 => 3*3 => 9).

        However, there’s also PEJMDAS, which suggests that implied multiplication has an operator precedence greater than regular multiplication/division (J for Juxtaposition). This version says you should do 6/2(2+1) => 6/(2*2 + 2*1) => 6/(4+2) => 6/6 => 1.

        The issue is that there is no universal agreement on which is correct. Most textbooks don’t even use the / operator, but instead rely on writing out the full fraction like ⁶⁄₂₍₂₊₁₎ or ⁶⁄₂(2+1). This removes any ambiguity there might be, and thus they don’t touch on which one is actually correct.

        Most (but not all) calculators these days will treat implied multiplication the same as regular multiplication, so you get 9 in the given example. Most programming languages do the same, or outright disallow implied multiplication because it only confuses people. Academics won’t ever use the ambiguous notation and will make sure to remove any ambiguity by either adding parentheses or using a notation like ⁶⁄₂₍₂₊₁₎, which makes things much more clear.

        Neither 9 nor 1 is wrong, the question is just stupid.

        • remon@ani.social
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          1 day ago

          The precedences go like this:

          parentheses > exponents > (multiplication = division) > (addition = substraction)

          If you encounter operators with the same precedence (like multiplication and division) you go by the order they appear in the equation, left to right. That is how it works.

          • Atomic@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            7 hours ago

            Yes. I am well aware. 6 ÷ 2 * (2+1) = (2+1) * 6 ÷ 2 = (6 * (2+1))÷2 = 6 * (2+1) ÷ 2

            What he wanted to do is 6 ÷ (2 * (2+1))

            But this just comes down to if you treat 2(2+1) as one or two expressions.

            And honestly, i don’t blame anyone for thinking one way or the other. Because i think most people understand that we wanted to write (2(2+1)), just that the overall parentheses is implied

            Why i deleted that first comment within seconds was because i saw i had misread the meme as (6÷2)(2(2+1))