• Queue
    link
    fedilink
    English
    24
    edit-2
    1 year ago

    For anyone like me who has math as their worst subject: PEMDAS.

    PEMDAS is an acronym used to mention the order of operations to be followed while solving expressions having multiple operations. PEMDAS stands for P- Parentheses, E- Exponents, M- Multiplication, D- Division, A- Addition, and S- Subtraction.

    So we gotta do it in the proper order. And remember, if the number is written like 2(3) then its multiplication, as if it was written 2 x 3 or 2 * 3.

    So we read 8/2(2+2) and need to do the following;

    • Read the Parentheses of (2 + 2) and follow the order of operations within them, which gets us 4.
    • Then we do 2(4) which is the same as 2 x 4 which is 8
    • 8 / 8 is 1.

    The answer is 1. The old calculator is correct, the phone app which has ads backed into it for a thing that all computers were invented to do is inaccurate.

    • hallettj
      link
      fedilink
      English
      21 year ago

      The problem is that the way PEMDAS is usually taught multiplication and division are supposed to have equal precedence. The acronym makes it look like multiplication comes before division, but you’re supposed to read MD and as one step. (The same goes for addition and subtraction so AS is also supposed to be one step.) It this example the division is left of the multiplication so because they have equal precedence (according to PEMDAS) the division applies first.

      IMO it’s bad acronym design. It would be easier if multiplication did come before division because that is how everyone intuitively reads the acronym.

      Maybe it should be PE(M/D)(A/S). But that version is tricky to pronounce. Or maybe there shouldn’t be an acronym at all.

      • but you’re supposed to read MD and as one step

        You can do them in any order at all - M then D, D then M (hence the acronym BEDMAS), or all in one - what does matter is not treating Distribution as though it’s Multiplication (which refers literally to multiplication signs), when in actual fact it’s the first step in solving Brackets.

    • @Coreidan@lemmy.world
      link
      fedilink
      English
      21 year ago

      PEMDAS evaluated from left to right. If you followed that you’d get 16. 1 is ignoring left to right.

    • @amtwon@lemmy.world
      link
      fedilink
      English
      131 year ago

      not to be That Guy, but the phone is actually correct… multiplication and division have the same precedence, so 8 / 2 * 4 should give the same result as 8 * 4 / 2, ie 16

    • @CaptDust@sh.itjust.works
      link
      fedilink
      21
      edit-2
      1 year ago

      Uh… no the 1 is wrong? Division and multiplication have the same precedence, so the correct order is to evaluate from left to right, resulting in 16.

    • @a_fine_hound@lemmy.world
      link
      fedilink
      33
      edit-2
      1 year ago

      Well that’s just wrong… Multiplication and division have equal priorities so they are done from left to right. So: 8 / 2 * (2 + 2)=8 / 2 * 4=4 * 4=16

      • Not quite, pemdas can go either from the left or right (as long as you are consistent) and division is the same priority as multiplication because dividing by something is equal to multiplying by the inverse of that thing… same as subtraction being just addition but you flip the sign.

        8×1/2=8/2 1-1=1+(-1)

        The result is 16 if you rewrite the problem with this in mind: 8÷2(2+2)=8×(1/2)×(2+2)

        • 8÷2(2+2)=8×(1/2)×(2+2)

          No, that’s wrong. 2(2+2) is a single term, and thus entirely in the denominator. When you separated the coefficient you flipped the (2+2) into the numerator, hence the wrong answer. You must never add multiplication signs where there are none.

        • @Omega_Jimes@lemmy.ca
          link
          fedilink
          91 year ago

          I’ve never had anyone tell me operations with the same priority can be done either way, it’s always been left to right.

          • I’ve always heard it that way too but I think it is for consistency with students, imo Logically, if you are looking at division = multiplying by inverse and subtraction = adding the negative, you should be able to do it both ways. Addition and multiplication are both associative, so we can do 1+2+3 = (1+2)+3 = 1+(2+3) and get the same answer.

            • @ReveredOxygen@sh.itjust.works
              link
              fedilink
              English
              11 year ago

              But subtraction and division are not associative. Any time you work on paper, 2 - 2 - 2 would equal -2. That is, (2-2)-2=0-2=-2. If you evaluate right to left, you get 2-2-2=2-(2-2)=2-0=2

              • Correct, subtraction and division are not associative. However, what is subtraction if not adding the opposite of a number? Or division if not multiplying the inverse? And addition and multiplication are associative.

                2-2-2 can be written as 2 + (-2) + (-2) which would equal -2 no matter if you solve left to right, or right to left.

                In your example with the formula from right to left, distributing the negative sign reveals that the base equation was changed, so it makes sense that you saw a different answer.

                2 - (2 - 2) = 2 + ((-2) + 2) = 2

          • I’ve never had anyone tell me operations with the same priority can be done either way, it’s always been left to right

            It’s left to right within each operator. You can do multiplication first and division next, or the other way around, as long as you do each operator left to right. Having said that, you also can do the whole group of equal precedence operators left to right - because you’re still preserving left to right for each of the two operators - so you can do multiplication and division left to right at the same time, because they have equal precedence.

            Having said that, it’s an actual rule for division, but optional for the rest. The actual rule is you have to preserve left-associativity - i.e. a number is associated with the sign to the left of it - and going left to right is an easy way to do that.

        • Correct! 2(2+2) is a single term - subject to The Distributive Law - and 2x(2+2) is 2 terms. Those who added a multiply sign there have effectively flipped the (2+2) from being in the denominator to being in the numerator, hence the wrong answer.

          But it’s not called “implicit multiplication” - it’s Terms and/or The Distributive Law which applies (and they’re 2 separate rules, so you cannot lump them together as a single rule).

      • 8 / 2 * (2 + 2)

        That’s not the same as 8 / 2 (2 + 2). In the original question, 2(2+2) is a single term in the denominator, when you added the multiply you separated it and thus flipped the (2+2) to be in the numerator, hence the wrong answer.

    • P E M D A S

      vs

      P E M/D A/S

      The latter is correct, Multiplication/Division, and Addition/Subtraction each evaluate left to right (when not made unambiguous by Parentheses). I.e., 6÷2×3 = 9, not 1. That said, writing the expression in a way that leaves ambiguity is bad practice. Always use parentheses to group operations when ambiguity might arise.

    • Turns out I’m wrong, but I haven’t been told how or why. I’m willing to learn if people actually tell me

      Well, I don’t know what you said originally, so I don’t know what it is you were told was wrong - 1 or 16? 😂 The correct answer is 1.

      Anyhow, I have an order of operations thread which covers literally everything there is to know about it (including covering all the common mistakes and false claims made by some). It includes textbook references, historical Maths documents, worked examples, proofs, memes, the works! I’m a high school Maths teacher/tutor - I’ve taught this topic many times.

    • @Cornelius_Wangenheim@lemmy.world
      link
      fedilink
      2
      edit-2
      1 year ago

      Ignore the idiots telling you you’re wrong. Everyone with a degree in math, science or engineering makes a distinction between implicit and explicit multiplication and gives implicit multiplication priority.

    • The problem with this is that the division symbol is not an accurate representation of the intended meaning. Division is usually written in fractions which has an implied set of parenthesis, and is the same priority as multiplication. This is because dividing by a number is the same as multiplying by the inverse, same as subtracting is adding the negative of a number.

      8/2(2+2) could be rewritten as 8×1/2×(2+2) or (8×(2+2))/2 which both resolve into 16.

      • Division is usually written in fractions

        Division and fractions aren’t the same thing.

        fractions which has an implied set of parenthesis

        Fractions are explicitly Terms. Terms are separated by operators (such as division) and joined by grouping symbols (such as a fraction bar), so 1÷2 is 2 terms, but ½ is 1 term.

        8/2(2+2) could be rewritten as 8×1/2×(2+2)

        No, it can’t. 2(2+2) is 1 term, in the denominator. When you added the multiply you broke it into 2 terms, and sent the (2+2) into the numerator, thus leading to a different answer. 8/2(2+2)=1.

      • Zagorath
        link
        fedilink
        71 year ago

        You left out the way it can be rewritten which most mathematicians would actually use, which is 8/(2(2+2)), which resolves to 1.

      • PEMDAS should be read as Parentheses, Exponents, Multiplication and Division, Addition and Subtraction. There are four levels of priority, not six.

        • Primarily0617
          link
          fedilink
          81 year ago

          You’re taking something you learned when you were like 9 years old and assuming it’s correct in every situation forever.

          Unfortunately this isn’t the case and you’re incorrect.

          • Inaccurate, this has nothing to do with the mnemonic PEMDAS, this has to do with the actual order of operations it tries to instill. That order of operations is not ambiguous, there is a correct way to solve simple equations like the one above, and there is one and only one correct answer to it. That answer is 16.

            • Primarily0617
              link
              fedilink
              6
              edit-2
              1 year ago

              And in the “actual” order of operations, if we want to pretend one exists, 2( binds more tightly than ÷

              if you’re going via prescriptivism, then you’re wrong, because there are plenty of authoritative sources following the left hand model

              if you’re going via descriptivism, then you’re wrong, because this thread exists

  • GTG3000
    link
    fedilink
    511 year ago

    I’m with the right answer here. / and * have same precedence and if you wanted to treat 2(2+2) as a single unit, you should have written it like (2*(2+2)).

  • Malgas
    link
    fedilink
    English
    191 year ago

    Left is correct; implicit multiplication takes precedence over explicit multiplication or division.

    • @4am@lemm.ee
      link
      fedilink
      31 year ago

      What the fuck is the difference in implicit vs explicit? It’s the same operation, why the fuck does it matter if there is a symbol?

      Multiplication comes first, then division.

      • the difference in implicit vs explicit? It’s the same operation

        “implicit multiplication” isn’t even a real thing in Maths, and isn’t even multiplication to begin with - people use that umbrella term to either mean The Distributive Law - which is the first step is solving Brackets - or Terms, which are products, which is the result of a multiplication.

        e.g. if a=2 and b=3, then…

        axb=2x3 - 2 terms

        ab=6 - 1 term

        Multiplication comes first, then division

        They can be done in either order, or even together, as long as you go left to right.

      • @0ops@lemm.ee
        link
        fedilink
        111 year ago

        Division is a form of Multiplication, just as subtraction is a form of addition. You multiply and divide in the same step, left to right

      • Malgas
        link
        fedilink
        English
        81 year ago

        No, multiplication and division are resolved from left to right in the same step. But implicit multiplication (xy, as opposed to x*y) happens first.

      • Malgas
        link
        fedilink
        English
        61 year ago

        Implicit multiplication is xy or x(y), explicit multiplication is x*y.

        Basically just whether or not there’s an actual multiplication symbol.

    • @aelwero@lemmy.world
      link
      fedilink
      51 year ago

      Agree completely. Old school calculator is wrong, but why? Pemdas wasn’t really big in school curriculums until around the turn of the century, but the order of operations existed at the previous turn of the century, and should operate correctly on every digital calculator ever made…

    • @otacon239@feddit.de
      link
      fedilink
      9
      edit-2
      1 year ago

      Nope. It’s PEMDAS at work.

      8/2(2+2)

      8/2(4) - Parentheses

      8/8 - Multiplication

      1 - Division

      Modern phone apps seem to be notorious for getting order of operations wrong. I’ve never had this issue with a dedicated calculator.

      Edit: my petard has been hoisted

      • @Laser@feddit.de
        link
        fedilink
        101 year ago

        You don’t do multiplication before division, they’re equal operations, so you go left to right. 8 x 0.5 (2 + 2) is the same from a mathematical point of view.

      • Beefy-Tootz
        link
        fedilink
        31 year ago

        My public school education on pemdas is that for multiplication/division and addition/subtraction, you do them on order from left to right. Doing it that way gets me 16, which I believe to be right, but I’m also very bad at math. The way you had explained is also technically correct, if you do the multiplication out of order. Now that I think about it, you could solve for the parentheses by multiplying 2+2 by two, giving you 8/8 quicker and still yielding 1. I’m now having more doubts about my math capabilities, both are right, but I know that’s wrong, I just don’t know why

        • you could solve for the parentheses by multiplying 2+2 by two, giving you 8/8 quicker and still yielding 1. I’m now having more doubts about my math capabilities

          No, that’s the correct way to do it, as per The Distributive Law.

          both are right

          No, only 1 is right. If you get 16 then you did division before finishing solving brackets.

      • Julian
        link
        fedilink
        English
        61 year ago

        I’ve always been taught that + and - were interchangeable with each other for pemdas, as well as * and /. So the hierarchy is

        • parenthesis
        • exponents
        • multiplication, division
        • addition, subtraction
      • 8/2(4) - Parentheses

        8/8 - Multiplication

        Correct steps, but wrong names. Where you said “multiplication” is actually still parentheses - that first step isn’t finished until you have removed them (which isn’t until after you have distributed and simplified, which you did do correctly).

        Modern phone apps seem to be notorious for getting order of operations wrong

        Yes, I know, and as a Maths teacher I am well and truly sick of hearing “but Google says…”, and so I wrote this thread to try and get developers to fix their damn calculators.

      • @DarkMessiah@lemmy.world
        link
        fedilink
        4
        edit-2
        1 year ago

        Actively wrong.

        PE(MD)(AS).

        Parenthesis comes first, do everything in each of them as though they were a whole equation to themselves.

        8/2(2+2) = 8/2(4)

        Then you do your exponents. The equation doesn’t have any, so we can go ahead and skip those.

        Multiplication and division are the same operation, just flipped around, so you go left to right and do those as you come across them. A number next to a parenthesis means multiplication, so to simplify:

        8/2(4) = 8/2x4

        8/2x4 = 4x4

        4x4 = 16

        Addition and subtraction don’t have any weird effects on the outcomes of each other, so you go left to right and do them as they come up. This equation has no more addition or subtraction to do, so we can consider what we have left our answer.

        Therefore: 8/2(2+2)=16

        This is straight from the textbook. You are wrong, and so are your purpose-built calculators.

        EDIT: Replaced * with x to avoid italicising.

        • Zagorath
          link
          fedilink
          21 year ago

          Replaced * with x to avoid italicising.

          You can do this without needing to replace by using a backslash. 1*2 comes from 1\*2.

          Anyway, the problem with your logic is that it’s using rules designed for primary school by one random primary school teacher many decades ago. Not a rigorous mathematical convention.

          In real maths, mathematicians frequently use juxtaposition to indicate multiplication at a higher priority than division. Rather than BIDMAS, something like BIJMDAS might work. But that isn’t as catchy, and more to the point: it requires understanding of an operation that doesn’t get used in primary school, so would be silly to put in to a mnemonic designed to aid probably school children.

          • the problem with your logic is that it’s using rules designed for primary school

            Actually The Distributive Law is taught in Year 7. The Primary School rule, which doesn’t include brackets with coefficients, is only the intermediate step.

            many decades ago. Not a rigorous mathematical convention

            It’s an actual rule which is centuries old.

            mathematicians frequently use juxtaposition to indicate multiplication

            It’s not multiplication - it’s either The Distributive Law or Terms, which are 2 separate rules.

            an operation that doesn’t get used in primary school

            Yes, as I said it’s taught in Year 7.

            • Zagorath
              link
              fedilink
              English
              11 year ago

              When I was in school, year 7 was primary school.

              Anyway, I’m the time that is relevant here is when you’ve done the various relevant mathematical tools, but haven’t yet been exposed to multiplication by juxtaposition. Which I’m fairly sure for me at least was in year 6.

              It’s an actual rule which is centuries old.

              No, the idea of specifically codifying BIDMAS comes from the early 1900s.

              I don’t know why you’re going throughout this thread over multiple hours spamming out your nonsense, but it’s wrong. BIDMAS is a convention, and a very useful one, but only because we instinctively know juxtaposition actually comes before explicit multiplication or division, and a rigid primary school application of BIDMAS will lead you to the wrong answer.

              Thankfully, I think you know that last part. Because I think that’s what you mean when you keep saying “it’s called terms”. But that, too, is wrong. It’s used in terms, for sure. y = 2x2 + 91/2)x - 4 contains three terms, the x2 term is 2x2, etc. But if I then changed the constant term to be 4(2 - 3×5) + 1, all of that would still only be the one term. Terms and multiplication by juxtaposition can work together, but fundamentally refer to entirely different aspects of mathematics. Juxtaposition is a notational thing, while terms are a fundamental aspect of the equation itself.

              • When I was in school, year 7 was primary school

                Oh really? My apologies then. I’ve only ever heard Year 7 called high school or middle school, never primary school. What country is that in?

                multiplication by juxtaposition. Which I’m fairly sure for me at least was in year 6

                I’ve seen some Year 6 classes do some pre-algebra (like “what number goes in this box to make this true”), but Year 7 is when it’s properly first taught. Every textbook I’ve ever seen it in has been Year 7 (and Year 8, as revision).

                Also, it’s not “multiplication by juxtaposition”, since it’s not multiplication - it’s The Distributive Law - which is Distribution - and/or Terms - which is a product, which is the result of a multiplication.

                No, the idea of specifically codifying BIDMAS comes from the early 1900s

                The order of operations rules are older than that - we can see in Lennes’ letter (1917) that all the textbooks were already using it then, and Cajori says - in 1928 - that the order of operations rules are at least 300 years old (which now makes them at least 400 years old).

                If you’re talking about when was the mnemonic BIDMAS made up, that I don’t know, but the mnemonics are only ways to remember the rules anyway, not the actual rules.

                I don’t know why you’re going throughout this thread

                I’m a Maths teacher, that’s what we do. :-)

                a rigid primary school application of BIDMAS will lead you to the wrong answer

                Only if the bracketed term has a coefficient (welcome to how Texas Instruments gets the wrong answer), which is never the case in Primary School questions - that’s taught in Year 7 (when we teach The Distributive Law).

                juxtaposition actually comes before explicit multiplication… I think that’s what you mean when you keep saying “it’s called terms”

                Terms come before operators, and we never call it juxtaposition, because The Distributive Law is also what people are calling “strong juxtaposition” (and/or “implicit multiplication”), but is a separate rule, so to lump 2 different rules together under 1 name is where a lot of people end up going wrong. There’s a Youtube where the woman gets confused by a calculator’s behaviour and she says “sometimes it obeys juxtaposition and sometimes it doesn’t” (cos she lumped those 2 rules together), and I for one can see clear as day the issue is it’s obeying Terms but not obeying The Distributive Law (but she lumped them together and doesn’t understand these are 2 separate behaviours).

                Terms and multiplication by juxtaposition can work together

                But that’s my point, there’s no such thing as “multiplication by juxtaposition”. A Term is a product, which is the result of a multiplication.

                If a=2 and b=3 then…

                axb=2x3 - 2 terms

                ab=6 - 1 term

                In the mnemonics “Multiplication” refers literally to multiplication signs, and nothing else. The Distributive Law is done as part of solving Brackets, and there’s nothing that needs doing with Terms, since they’re already simplified (unless you’ve been given some values for the pronumerals, in which case you can substitute in the values, but see above for the correct way to do this with ab, though you could also do (2x3), but absolutely never 2x3, cos then you just broke up the term, and get the wrong answer - brackets can’t be removed unless there is only 1 term left inside. People writing 2(3)=2x3 are making the same mistake).

          • @DarkMessiah@lemmy.world
            link
            fedilink
            21 year ago

            Just looked it up. Everything I know is a lie. Thank you, kind stranger on the internet. I’m going to go have an existential crisis, now.

      • Nightwatch Admin
        link
        fedilink
        51 year ago

        In PEMDAS M does not get priority over D so the equation has to be executed in order: 8/2=4, 4*4=16. You would be correct if all PEMDAS were a priority list., but it is not.

      • @TentacleKitten@lemm.ee
        link
        fedilink
        51 year ago

        Multiplication and division are same level just as addition and subtraction are same level. So it would be worked multiplication and division in order from left to right.

  • @Pavidus@lemmy.world
    link
    fedilink
    991 year ago

    There’s quite a few calculators that get this wrong. In college, I found out that Casio calculators do things the right way, are affordable, and readily available. I stuck with it through the rest of my classes.

  • @cRazi_man@lemm.ee
    link
    fedilink
    71 year ago

    Ah damn it. It took me ages to find a calculator app that fits my needs… And now I find out it works like the one on the right.