• Vagabond@kbin.social
    link
    fedilink
    arrow-up
    19
    arrow-down
    6
    ·
    10 months ago

    8÷2(2+2) comes out to 16, not 1.

    Saw it posted on Instagram or Facebook or somewhere and all of the top comments were saying 1. Any comment saying 16 had tons of comments ironically telling that person to go back to first grade and calling them stupid.

    • theshatterstone54@feddit.uk
      link
      fedilink
      arrow-up
      30
      arrow-down
      1
      ·
      10 months ago

      Let’s see.

      8÷2×(2+2) = 8÷2×4

      At this point, you solve it left to right because division and multiplication are on the same level. BODMAS and PEMDAS were created by teachers to make it easier to remember, but ultimately, they are on the same level, meaning you solve it left-to-right, so…

      8÷2×4 = 4×4 = 16.

      So yes, it does equal 16.

      • themeatbridge@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        5
        ·
        10 months ago

        Depends on whether you’re a computer or a mathematician.

        2(2+2) is equivalent to 2 x (2+2), but they are not equal. Using parenthesis implicitly groups the 2(2+2) as part of the paretheses function. A computer will convert 2(4) to 2 x 4 and evaluate the expression left to right, but this is not what it written. We learned in elementary school in the 90s that if you had a fancy calculator with parentheses, you could fool it because it didn’t know about implicit association. Your calculator doesn’t know the difference between 2 x (2+2) and 2(2+2), but mathematicians do.

        Of course, modern mathematicians work primarily in computers, where the legacy calculator functions have become standard and distinctions like this have become trivial.

          • themeatbridge@lemmy.world
            link
            fedilink
            arrow-up
            3
            arrow-down
            2
            ·
            10 months ago

            I’m old but I’m not that old.

            The author of that article makes the mistake of youth, that because things are different now that the change was sudden and universal. They can find evidence that things were different 100 years ago, but 50 years ago there were zero computers in classrooms, and 30 years ago a graphing calculator was considered advanced technology for an elementary age student. We were taught the old math because that is what our teachers were taught.

            Early calculators couldn’t (or didn’t) parse edge cases, so they would get this equation wrong. Somewhere along the way, it was decided that it would be easier to change how the equation was interpreted rather than reprogram every calculator on earth, which is a rational decision I think. But that doesn’t make the old way wrong, anymore than it makes cursive writing the wrong way to shape letters.

        • A computer will convert 2(4) to 2 x 4

          Only if that’s what the programmer has programmed it to do, which is unfortunately most programmers. The correct conversion is 2(4)=(2x4).

          in the 90s that if you had a fancy calculator with parentheses, you could fool it because it didn’t know about implicit association. Your calculator doesn’t know the difference between 2 x (2+2) and 2(2+2), but mathematicians do

          Actually it’s only in the 90’s that some calculators started getting it wrong - prior to that they all gave correct answers.

    • EuroNutellaMan@lemmy.world
      link
      fedilink
      arrow-up
      9
      arrow-down
      1
      ·
      10 months ago

      No, 2+2 = 🐟 so it would be 8÷2🐟 and since 🐟 is no longer a number it becomes 4🐟. So the answer is 4 fishes.

    • nudny ekscentryk@szmer.info
      link
      fedilink
      arrow-up
      9
      arrow-down
      7
      ·
      edit-2
      10 months ago

      And both you and people arguing that it’s 1 would be wrong.

      This problem is stated ambiguously and implied multiplication sign between 2 and ( is often interpreted as having priority. This is all matter of convention.

    • Zoot@reddthat.com
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      edit-2
      10 months ago

      Back in gradeschool I was always taught that in Pemdas, the parenthesis are assumed to be there in 8÷(2×(2+2)) where as 8÷2×(2+2) would be 16, 8÷2(2+2) is the above and equals 1.

      • Vagabond@kbin.social
        link
        fedilink
        arrow-up
        15
        arrow-down
        1
        ·
        10 months ago

        Not quite. It’s true you resolve what’s inside the parentheses first, giving you. 8÷2(4) or 8÷2x4.
        Now this is what gets most people. Even though Multiplication technically comes before Division the Acronym PEMDAS, that’s really just to make it sound correct phonetically. Really they have equal priority in the order of operations and the appropriate way to resolve the problem is to work from left to right solving each multiplication or division sign as you encounter them. Giving you 16. Same for addition and subtraction.

        So basically the true order of operations is:

        1. Work left to right solving anything inside parentheses
        2. Work left to right solving any exponentials
        3. Work left to right solving any multiplication or division
        4. Work left to right solving any addition or subtraction

        Source: Mechanical Engineering degree so an unfortunate amount of my life spent in math and physics classes.

        • Zoot@reddthat.com
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          edit-2
          10 months ago

          Absolutely, its all seen as equal so it has to go left to right However as I said in the beginning the way I was taught atleast, is when you see 2(2+2) and not 2×(2+2) you assume that 2(2+2) actually means (2×(2+2 )) and so must do it together.

          • Vagabond@kbin.social
            link
            fedilink
            arrow-up
            4
            ·
            edit-2
            10 months ago

            Ah sorry just realized what you were saying. I’ve never been taught that. Maybe it’s just a difference in teaching styles, but it shouldn’t be since it can actually change the outcome. The way I was always taught was if you see a number butted up against an expression in parentheses you assume there is a multiplication symbol there.

            So you were taught that 2(2+2) == (2(2+2))
            I was taught 2(2+2)==2*(2+2)

            Interesting difference though because again, assuming invisible parentheses can really change up how a problem is done.

            Edit: looks like theshatterstone54’s comment assumed a multiplication symbol as well.

            • if you see a number butted up against an expression in parentheses you assume there is a multiplication symbol there

              No, it means it’s a Term (product). If a=2 and b=3, then axb=2x3, but ab=6.

              I was taught 2(2+2)==2*(2+2)

              2(2+2)==(2*(2+2)). More precisely, The Distributive Law says that 2(2+2)=(2x2+2x2).

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Basically the normal arithmetic operators are all left-associative which means if you have more than one you solve them left to right.

        • It’s true you resolve what’s inside the parentheses first, giving you. 8÷2(4) or 8÷2x4.

          Not “inside parenthesis” (Primary School, when there’s no coefficient), “solve parentheses” (High School, The Distributive Law). Also 8÷2(4)=8÷(2x4) - prematurely removing brackets is how a lot of people end up with the wrong answer (you can’t remove brackets unless there is only 1 term left inside).

    • ryathal@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      edit-2
      10 months ago

      Math should be taught with postfix notation and this wouldn’t be an issue. It turns your expression into this.
      8 2 ÷ 2 2 + ×