• rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    28 days ago

    I mean, obviously ten.

    But I at least understand 16.

    I deeply worry about the percentage just next to the other three numbers.

    • lauha@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      28 days ago

      Your obviously is only a convention and not everyone agree with that. Not even all peogramming languages or calculators.

      If you wanted obviously, it would have to have different order or parentheses or both. Of course everything in math is convention but I mean more obvious.

      2+2*4 is obvious with PEDMAS, but hardy obvious to common people

      2+(2*4) is more obvious to common people

      2*4+2 is even more obvious to people not good with math. I would say this is the preferred form.

      (2*4)+2 doesn’t really add more to it, it just emphasises it more, but unnecessarily.

      • then_three_more@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        28 days ago

        There’s just 5 lots of 2. If it’s hard then think of x being just a bunch of + smooshed together. So

        2 + 2 x 4

        expands to

        2 + 2 + 2 + 2 + 2

        or contracts to

        5 x 2

        • FishFace@piefed.social
          link
          fedilink
          English
          arrow-up
          0
          ·
          28 days ago

          You’ve completely not understood that order of operations is an arbitrary convention. How did you decide to expand the definition of multiplication before evaluating the addition? Convention.

          You can’t write 2 + 2 ÷ 2 like this, so how are you gonna decide whether to decide to divide or add first?

          • You’ve completely not understood that order of operations is an arbitrary convention

            No, you’ve completely not understood that they are universal rules of Maths

            How did you decide to expand the definition of multiplication before evaluating the addition? Convention

            The definition of Multiplication as being repeated addition

            You can’t write 2 + 2 ÷ 2 like this

            Yes you can

            so how are you gonna decide whether to decide to divide or add first?

            The rules of Maths, which says Division must be before Addition

            • FishFace@piefed.social
              link
              fedilink
              English
              arrow-up
              0
              ·
              19 days ago

              How are you gonna write 2 + 2 ÷ 2 with repeated addition?

              The definition of Multiplication as being repeated addition

              That doesn’t mean it has to be expanded first. You could expand 2 + 2 × 3 as (2+2)+(2+2)+(2+2) and you are unable to tell me what mathematical law prohibits it.

              If this were a universal law, reverse polish notation wouldn’t work as it does. In RPL, 2 2 + 3 × is 12 but 2 3 × 2 + is 8. If you had to expand multiplication first, how would it work? The same can be done with prefix notation, and the same can be done with “pre-school” order of operations.

              Different programming languages have different orders of operations, and those languages work just fine.

              Your argument amounts to saying that it makes the most sense to do multiplication before addition. Which is true, but that only gives you a convention, not a rule.

              • How are you gonna write 2 + 2 ÷ 2 with repeated addition?

                You don’t, because the second 2 is associated with a Division that has to be done before the addition. Maybe go back to school and learn how to do Maths 🙄

                That doesn’t mean it has to be expanded first.

                Yes it does. Everything has to be expanded before you do the addition and subtraction, or you get wrong answers 🙄

                2+3x4=2+3+3+3+3=2+12=14 correct

                2+3x4=5x4=5+5+5+5=20 wrong

                You could expand 2 + 2 × 3 as (2+2)+(2+2)+(2+2)

                Says someone who can’t tell the difference between (2+2)x3=12 and 2+2x3=8 🙄

                you are unable to tell me what mathematical law prohibits it

                The order of operations rules 😂

                reverse polish notation wouldn’t work as it does

                It works because it treats every operation as bracketed without writing the brackets. Also that’s only a Maths notation, not the Maths itself.

                In RPL, 2 2 + 3 × is 12

                Because the way it calculates that is (2+2)x3, not complicated. Same order of operations rules as other Maths notations - just a different way of writing the same thing

                If you had to expand multiplication first, how would it work?

                It works because Brackets - 2 2 + = (2+2) - are before Multiplication

                The same can be done with prefix notation

                Another Maths notation, same rules of Maths

                Different programming languages have different orders of operations

                Maths doesn’t

                those languages work just fine

                They don’t actually. Welcome to most e-calcs give wrong answers because the programmers failed to deal with it correctly.

                Your argument amounts to saying that it makes the most sense to do multiplication before addition

                No, my argument is it’s a universal rule of Maths, as found in Maths textbooks 🙄

                that only gives you a convention, not a rule

                Left to right is a convention (as is not writing the brackets in RPN). Brackets before Multiplication before Addition are rules.

                • FishFace@piefed.social
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  11 days ago

                  You don’t, because the second 2 is associated with a Division that has to be done before the addition. Maybe go back to school and learn how to do Maths 🙄

                  Right, so you cannot derive precedence order from the definition of the operations. Your argument based on the definition of multiplication as repeated addition is wrong.

                  or you get wrong answers

                  This is begging the question. We are discussing whether the answers are flat wrong or whether there is a layer of interpretation. Repeating that they are wrong does nothing for this discussion, so there’s no need to bother.

                  You have nothing to say that I can see about why the different interpretations are impossible, or contradictory, or why they ought to qualify as “wrong” even though maths works regardless; you’ve just heard a school-level maths teacher tell you it’s done one way and believe that’s the highest possible authority. I’m sorry, but lots of things we get taught in high school are wrong, or only partially right. I see from your profile that you are a maths teacher, so it’s actually your job to understand maths at a higher level than the level at which you teach it. It may be easier to to teach high school maths this way, but it’s not a good enough level of understanding for an educator (or for a mathematician).

                  Left to right is a convention (as is not writing the brackets in RPN). Brackets before Multiplication before Addition are rules.

                  OK, let’s try a different tack. When I hear the word “rules”, I think you’re talking either about a rule of inference in first order logic or an axiom in a first-order system. But there is no such rule or axiom in, for example, first order Peano arithmetic. So what are you talking about? Can you find somewhere an enumeration of all the rules you’re talking about? Because maybe we’re just talking at cross-purposes: if you deviate from the axioms of Peano arithmetic then we’re fundamentally not doing arithmetic any more. But I contend that you will not find included in any axiomatisation anything which specifies order of operations. This is because from the point of view of the “rules” (i.e. the axioms) the addition and multiplication operations are just function symbols with certain properties. Even the symbols themselves are not really part of the axiomatisation; you could just as well get rid of the + symbol and write A(x, y, z) instead of “x + y = z”; you’d have the exact same arithmetic, the exact same rules.

                  If you’re able to answer this, we can get away from these vague terms which you keep introducing like “notation definition”, and we can instead think about what it means to be a convention versus whatever it is you mean by “rule”. (For example, Peano arithmetic has a privileged position amongst candidates for arithmetic because it encompasses our intuition about how numbers work: you can’t just take an alternative arithmetic, like say arithmetic modulo 17, and say that’s an “alternative convention” because when you add an apple to a bowl of 16 apples, they don’t all disappear. But there’s no such intuition about how to write mathematics to express a certain thing. I contend that is all convention.)

                  It works because it treats every operation as bracketed without writing the brackets. Also that’s only a Maths notation, not the Maths itself.

                  So, you understand that a notation can evaluate things in a certain order with what you call “treating every operation as bracketed without writing brackets.” What does it mean to be “bracketed without writing brackets”? There are exactly two aspects to brackets:

                  1. the symbols themselves - but we’re not writing them! So this isn’t relevant.
                  2. the effect they have - the effect on the order of evaluation of operations

                  So what you’re admitting with these phantom brackets is that a notation can evaluate operations in a different order, even though there are no written brackets.

                  So I can specify these fake brackets to always wrap the left-most operation first: (2 + 3) x 5 and hey look, this notation now has left-to-right order of evaluation, not the usual multiplication first. If you prefer to think of there being invisible brackets there, go right ahead, but the effect is the same.

                  So, how do we decide whether our usual notation “has bogus brackets” or not? Convention. We could choose one way or the other. Nothing breaks if we choose one or the other. Symmetrically, we could say that left-to-right evaluation is the notation “without bogus brackets” and that BODMAS evaluation is the notation “with bogus brackets”. Which choice we make is entirely arbitrary. That is, unless you can find a compelling reason why one is right and the other wrong, rather than just saying it once again.

                  They don’t actually. Welcome to most e-calcs give wrong answers because the programmers failed to deal with it correctly.

                  What problems does it cause? Are the problems purely that they don’t have the order of operations you expect, and so get different answers if you don’t clarify with brackets? Because that, again, is begging the question.

                  To re-iterate, you are in a discussion where you’re trying to establish that it’s a fundamental law of maths that you must do multiplication before addition. The fact that you’ve written a post in which you document how some calculators don’t follow this convention and said that they’re wrong is not evidence of that. It’s just your opinion. Indeed, it’s really (weak) evidence that your opinion is wrong, because you’re less of an authority than the manufacturers of calculators.

                  On calculators, there’s something important you need to realise: basic, non-scientific, non-graphing calculators all have left-to-right order of operations. You can test this with e.g. windows calculator in “standard” mode by typing 2, +, 3, x, 5 (it will give you 25, not 17). Switch it to “scientific” mode and it will give you 17.

                  Why is it different? Because “standard” mode is emulating a basic calculator which has a single accumulator and performs operations on that accumulated value. When you type “x 2” you are multiplying the accumulator by 2; the calculator has already forgotten everything that you typed to get the accumulator. This was done in the early days of calculators because it was more practical when memory looked like this: image

                  Now, you can go on about your bogus brackets until you’re blue in the face, but the fact is that this isn’t “wrong”. It has a different convention for a sensible reason and if you expect something different then it is you who are using the device wrong.

                  From your other comment, since having two threads seems pointless:

                  So if you have one “notation definition” as you call it which says that 2+2*3 means ”first add two to two, then multiply by three” and another which says “first multiply two by three, then add it to two”, why on earth do the “rules” have anything further to say about order of operations?

                  No we don’t. We have another notation which says to do paired operations (equivalent to being in brackets) first.

                  What do you mean “we don’t”? I just made the definition. It exists. This is why terms like “notation definition” are not actually helpful IMO, so let’s be precise and use terms that are either plain english (like “convention”) or mathematical (like “axiom”, “definition”, etc).

    • quail@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      27 days ago

      Order of operations only has one rule: Bedmas (or pemdas if you’re not from north america)

      • PeriodicallyPedantic@lemmy.ca
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        edit-2
        27 days ago

        If you look at the arguments on math forums, you’ll see that there isn’t just one rule.

        It is a convention, and different places teach different conventions.
        Namely, some places say that PEDMAS is a very strict order. Other places say that it is PE D|M A|S, where D and M are the same level and order is left-to-right, and same with addition vs subtraction.
        And others, even in this post, say it’s PEMDAS, which I have heard before.

        “Correct” and “incorrect” don’t apply to conventions, it’s simply a matter of if the people talking agree on the convention to use. And there are clearly at least three that highly educated people use and can’t agree on.

        • different places teach different conventions

          But they all teach the same rules

          some places say that PEDMAS is a very strict order

          Which is totally fine and works

          Other places say that it is PE D|M A|S,

          Which is also totally fine and works

          even in this post, say it’s PEMDAS

          Also totally fine and works

          it’s simply a matter of if the people talking agree on the convention to use

          No-one has to agree on any convention - they can use whatever they want and as long as they obey the rules it will work

          can’t agree on

          Educated people agree that which convention you use doesn’t matter.

          • PeriodicallyPedantic@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            19 days ago

            That’s not true Here is an example:
            8÷2x4
            PEMDAS: 8÷2x4 = 8÷8 = 1
            PEDMAS: 8÷2x4 = 4x4 = 16
            PE M|D A|S: 8÷2x4 = 4x4 = 16
            And thats not even getting into juxtaposition operations, where fields like physics use conventions that differ from most other field.

            but you’re missing the point. It could be SAMDEP and math would still work, you’d just rearrange the equation. Just like with prefix or postfix notation. The rules don’t change, just the notation conventions change. But you need to agree on the notation conventions to reach the same answer.

            • That’s not true

              Yes it is

              PEDMAS: 8÷2x4 = 4x4 = 16

              Yep.

              PEMDAS: 8÷2x4 = 8÷8 = 1

              Nope. PEMDAS: 8x4÷2 = 32÷2 = 16. What you actually did is 8÷(2x4), in which you changed the sign in front of the 4 - 8÷(2x4)= 8÷2÷4 - hence your wrong answer

              PE M|D A|S: 8÷2x4 = 4x4 = 16

              Yep, same answer regardless of the order 🙄

              And thats not even getting into juxtaposition operations,

              Which I have no doubt you don’t understand how to do those either, given you don’t know how to even do Multiplication first in this example.

              where fields like physics use conventions that differ from most other field

              Nope! The obey all the rules of Maths. They would get wrong answers if they didn’t

              you’re missing the point

              No, you are…

              It could be SAMDEP and math would still work

              No it can’t because no it wouldn’t 😂

              you’d just rearrange the equation.

              Says someone who didn’t rearrange “PEMDAS: 8÷2x4 = 8÷8 = 1” and got the wrong answer 😂

              The rules don’t change

              Hence why “PEMDAS: 8÷2x4 = 8÷8 = 1” was wrong. You violated the rule of Left Associativity

              • PeriodicallyPedantic@lemmy.ca
                link
                fedilink
                arrow-up
                0
                ·
                edit-2
                19 days ago

                Ok, then explain prefix and postfix, where these conventions don’t apply. How can these be rules of math when they didn’t universally apply?

                Says someone who didn’t rearrange "PEMDAS

                The order of operations tells us how to interpret an equation without rearranging it. When you pick a different convention, you need to rearrange it to get the same answer. What you did was rearrange the equation, which you can only do if you are already following a specific convention.

                No it can’t because no it wouldn’t 😂

                All conventions can produce the correct answer, when appropriately arranged for that convention, because the conventions are not laws of mathematics, they are conventions.

                Nope! The obey all the rules of Maths. They would get wrong answers if they didn’t

                They obey the laws of math. Conventions aren’t laws of math, they’re conventions. And a quick Google search will tell you that not everyone puts juxtaposition at a higher precedent than multiplication; it’s a convention. As long as people are using the same convention, they’ll agree on an answer and that answer is correct.

                You can be mean all you like, that doesn’t change the nature of conventions

                • Ok, then explain prefix and postfix, where these conventions don’t apply

                  The conventions don’t apply, the rules still apply. Maths notation and the rules of Maths aren’t the same thing.

                  How can these be rules of math when they didn’t universally apply?

                  The rules do universally apply 🙄

                  The order of operations tells us how to interpret an equation without rearranging it

                  Yep, and you showed you don’t know the rules 🙄

                  When you pick a different convention, you need to rearrange it to get the same answer

                  Not necessarily, though it makes it easier (but also leads a lot of people to make mistakes with signs, as you found out 😂 )

                  What you did was rearrange the equation

                  To show you how to correctly do “Multiplication first”. 🙄

                  which you can only do if you are already following a specific convention

                  Which you didn’t, hence why you ended up with a wrong answer. 🙄 There is no textbook which says put the multiplication in Brackets if doing “Multiplication first”, none.

                  because the conventions are not laws of mathematics, they are conventions

                  And putting the Multiplication inside Brackets isn’t a convention anywhere 🙄

                  They obey the laws of math. Conventions aren’t laws of math, they’re conventions

                  Yep, and you ignored both, hence your wrong answer 🙄

                  And a quick Google search will tell you that not everyone puts juxtaposition at a higher precedent than multiplication

                  And a quick look in the Google support forum will show you many people telling them that is wrong, and Google just closes the incident 🙄

                  it’s a convention

                  No it isn’t. It’s against the rules. 🙄 Again, you won’t find this alleged “convention” in any Maths textbook

                  As long as people are using the same convention, they’ll agree on an answer and that answer is correct

                  Unless they disobeyed the rules, in which case they are all wrong 🙄

                  You can be mean all you like, that doesn’t change the nature of conventions

                  And you can be as ignorant of the rules and conventions of Maths as much as you want, and it’s not going to change that your answer is wrong 🙄