• aliceblossom@lemmy.world
      link
      fedilink
      English
      arrow-up
      26
      arrow-down
      1
      ·
      23 days ago

      Because its not really “1 plus 3”, its negative 1 plus 3 which is two. I know it seems a little weird but the minus sign is " tied" to the thing following it.

    • cecilkorik@lemmy.ca
      link
      fedilink
      English
      arrow-up
      23
      ·
      23 days ago

      Parenthesis, exponents, multiplication, division, addition, subtraction.

      should actually be

      Parenthesis, exponents, (multiplication and division), (addition and subtraction).

      Addition and subtraction are given the same priority, and are done in the same step, from left to right.

      It’s not a great system of notation, it could be made far clearer (and parenthesis allow you to make it as clear as you like), but it’s essentially the universal standard now and it’s what we’re stuck with.

      • iglou@programming.dev
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        1
        ·
        edit-2
        23 days ago

        No, it should simply be “Parenthesis, exponents, multiplication, addition.”

        A division is defined as a multiplication, and a substraction is defined as an addition.

        I am so confused everytime I see people arguing about this, as this is basic real number arithmetics that every kid in my country learns at 12 yo, when moving on from the simplified version you learn in elementary school.

        • 13igTyme@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          ·
          23 days ago

          You want PEMA with knowledge of what is defined, when people can’t even understand PEMDAS. You wish for too much.

          • iglou@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            23 days ago

            I’m just confused as to how that is not common knowledge. The country I speak of is France, and we’re not exactly known for our excellent maths education.

    • fluxion@lemmy.world
      link
      fedilink
      English
      arrow-up
      16
      arrow-down
      2
      ·
      edit-2
      23 days ago

      Addition/subtraction work out the same regardless of how you order the operations. If you do subtraction last you start with the original:

      9-1+3

      and you are adding 3 to the result of (9-1). Since you are trying to perform it before the (9-1) operation is carried out, you can add 3 to the 9:

      12-1 = 11

      or you can add three to the -1 and get:

      9+2 = 11

      You only end up with 9-4 if you were subtracting 3 rather than adding three. It all becomes more obvious if you read the original as:

      9 + (-1) + 3

    • Geodad@lemm.ee
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      23 days ago

      It’s multiplication or division from left to right followed by addition or subtraction, also from left to right.

      That’s where a lot of people fuck up.