• AHemlocksLie@lemmy.zip
    link
    fedilink
    arrow-up
    1
    ·
    30 minutes 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

    • AHemlocksLie@lemmy.zip
      link
      fedilink
      arrow-up
      3
      ·
      28 minutes 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.

  • ☭SaltyIcetea☭@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    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

    • morphballganon@mtgzone.com
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      2
      ·
      1 hour ago

      you still go left to right

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

    • BurntWits@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      9 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.

    • Reyali@lemmy.world
      link
      fedilink
      arrow-up
      43
      ·
      17 hours 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
        25
        arrow-down
        1
        ·
        17 hours 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
        10
        arrow-down
        1
        ·
        17 hours 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
          7
          arrow-down
          1
          ·
          11 hours 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
          ·
          edit-2
          15 hours 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
            1
            ·
            14 hours 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
              ·
              14 hours 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.

    • YiddishMcSquidish@lemmy.today
      link
      fedilink
      English
      arrow-up
      5
      ·
      10 hours 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
    23
    arrow-down
    1
    ·
    14 hours 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
    41
    arrow-down
    1
    ·
    17 hours 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.

    • Otter@lemmy.ca
      link
      fedilink
      arrow-up
      3
      ·
      10 hours 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
    • neatchee@piefed.social
      link
      fedilink
      English
      arrow-up
      26
      ·
      17 hours 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
        1
        ·
        2 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?

    • KC_Royalz@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      14 hours 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
        ·
        13 hours 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.

      • 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
          ·
          edit-2
          17 hours 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.

  • Clent@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    19
    arrow-down
    1
    ·
    17 hours ago

    No mathematician would write an ambiguous equation like that.

    People who argued over these are displaying an incorrect memory of a math education that is simply not a good look.

    Division and multiplication have the same precedence, equations are evaluated left to right, so equation is divide then multiple. Division and subtraction are syntactic sugar for multiplication and addition.

    These are fun little experiments showing how social media makes people more stupider and how proud the ignorant behave amongst themselves.

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

      Division and subtraction are syntactic sugar 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?

    • DaleGribble88@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      It also pulls double duty by making math look hard, ambiguous, and untrustworthy. Anti education, poor reasoning skills, and an implicit distrust of mathematical models and statistics.

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      17 hours ago

      It’s not unheard of to find, in an exercise, “Simplify 4x²/2x”. The answer is almost guaranteed to be 2x. (There are some interesting exceptions, but they’re not really important). More often such a question would use fraction notation, but not always, to prevent exercises taking up too much space.

      What’s going on is that the multiplication of the 2 and x, because they are written without a symbol in between, is seen as morally being something you should do first.

      And in such exercise contexts, it’s unlikely to be misunderstood. But it’d still be better to be clear about it.

  • FishFace@piefed.social
    link
    fedilink
    English
    arrow-up
    12
    ·
    17 hours ago

    Uh oh, here we go! Before the Fediverse’s favourite mathematical charlatan comes to play, let’s lay out a few facts:

    • This is an unusual way of writing down this expression: you would not normally mix in-line division (written with ÷) and multiplication written without a symbol. It’s written this way on social media to for engagement bait.
    • Because of this, a perfectly valid reply is to ask “can you put in some brackets to make it clear” :)
    • A strict, standard reading of the order-of-operations as abbreviated by PEMDAS, BODMAS, etc, is to perform multiplication and division in the order that they occur. This would mean the evaluation goes like this:
      1. 6÷2(1+2)
      2. Perform addition inside the brackets: 6÷2(3)
      3. Perform the first multiplication or division: 3(3)
      4. Perform the remaining multiplication: 9
    • Occasionally, PEMDAS is interpreted as indicating that multiplication must be done first because the M occurs before the D. This is not usually how it is taught, but rarely it happens. This would give you 1 but, to be clear, in most places this is wrong. I myself was taught BODMAS and, in fact, do division first in all circumstances.
    • Much more commonly, though, the actual practical order in which mathematicians, teachers and students all evaluate expressions is a little different, in that it evaluates symbol-less multiplication (also known as “juxtaposition” which just means “writing two things next to each other” or, in discussions about this topic in particular, “implicit multiplication”) before anything else. This is done because writing two things next to each other creates a tightly-bound visual unit.

    It’s rare for this last point to be mentioned explicitly as a violation of the order-of-operations. It usually only becomes relevant well after those conventions are spelled out (which is typically done in late primary school or early high school) after children start learning algebra and how to write algebraic expressions: using letters to represent unknown quantities, omitting the × symbol. Exam boards and textbooks are usually quite careful to avoid writing problems in which this unstated rule actually matters.

    It’s important to realise that the order in which we evaluate a mathematical expression is a matter of convention. After establishing how to add, multiply, subtract or divide two numbers, it is a separate question which operations should happen first when more than one is written together. This is why we need to teach students the order of operations - they can’t just work it out themselves. Having said that, it certainly makes a lot more sense to do multiplication before addition, and exponentiation before multiplication, because each of these operations is (typically: you can define them in different ways if you’re a masochist) defined in terms of the previous one. This means that if you have an expression involving all three, and you first turn all the exponentiation into multiplications, you are left with a simpler expression that means the same thing. This only happens if evaluating exponentiation is the first thing you’re supposed to do. However, it would be a mistake to think this means that there is any mathematical necessity about this: what a sequence of squiggles on paper means is entirely up to the people reading and writing the squiggles; as long as they agree, the person reading the squiggles will get the same answer as intended by the person writing them. There’s a good, lengthy write-up here

    This means that while what I was taught is “wrong” according to how it is usually taught (including today in the same country), this wrongness is better understood mathematically as “unusual” - something that needs to be worked out by communication and consensus rather than by dictating one right and another wrong.

    You do get some people with very strong opinions about this, which is not always correlated with their actual knowledge. If the aforementioned charlatan turns up, I’ll explain…

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

    Math should be taught with postix or reverse Polish notation. It removes this ambiguity as the order of operations is left to right.

    • FishFace@piefed.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      14 hours ago

      But it’s not so great for polynomials and other more complicated expressions which you’re not just evaluating, but rather manipulating algebraically:

      3 y × 3 ^ 4 y × 2 ^ + -2 y × + 3 +

  • [object Object]@lemmy.ca
    link
    fedilink
    arrow-up
    9
    arrow-down
    2
    ·
    16 hours ago

    It’s ambiguous either this resolves to 6 / (2(1+2)) or (6/2) * (1+2), and therefore both answers must be accepted.

    By convention, the division sign is not to be used in equations. It is not a standard operation.

    It is may be used for representing the operation of division as a symbol, but never as an operator itself.

    Anyone using the division sign is using it entirely for trolling purposes.

    • Hiro8811@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      7 hours ago

      Huh why would you add additional brackets? It’s simply 6:2*(1+2) then you solve it in order since division and multiplication are same level of operation.

    • 0ops@piefed.zip
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      11 hours ago

      I wouldn’t say that it’s ambiguous, you’ll only get one answer evaluating in PE(M|D)(A|S) order left to right (your second one), enter it into any calculator and you should get 9.

      For sure, how it’s written is unconventional and easy to misread if I’m in a hurry, but honestly that’s an issue of misleading typography, not ambiguous notation. The ÷ symbol takes a lot of space (plus it looks sort of like a +) and the implicit multiplication against the parentheses doesn’t, so when I read too fast my brain might instinctively calculate each side of the division first because they sort of look like two terms. But doing that violates the left-to-right rule.

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

      This is not true. It typically falls out of use in high school and rarely shows up after, but it’s not like it’s banned or anything like that.

      • [object Object]@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        It’s not in the modern standard for notation. I never once saw it used in university. I even had prof who typed their homework on a typewriter and he didn’t use it (he actually typeset everything pretty nicely).