• Uphillbothways@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Pemdas is mostly just factoring, kinda. That’s how you should think of it.

    2x4 is really 2+2+2+2.

    That first 2+(anything else) can’t be acted/operated upon until you’ve resolved more nested operations down to a comparable level.

    That’s it. It’s not arbitrary. It’s not magic. It’s just doing similar actions at the same time in a meaningful way. It’s just factoring the activities.

    • Kogasa@programming.dev
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      edit-2
      1 year ago

      It is, in fact, completely arbitrary. There is no reason why we should read 1+2*3 as 1 + (2*3) instead of (1 + 2) * 3 except that it is conventional and having a convention facilitates communication. No, it has nothing to do with set theory or mathematical foundations. It is literally just a notational convention, and not the only one that is still currently used.

      Edit: I literally have an MSc in math, but good to see Lemmy is just as much on board with the Dunning-Kruger effect as Reddit.

      • Uphillbothways@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 year ago

        If you don’t accept adding and subtracting numbers as allowed mathematical transactions, multiplication doesn’t make sense at all. It isn’t arbitrary. It’s fundamental basic accounting.

        • Kogasa@programming.dev
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          edit-2
          1 year ago

          What you just said is at best irrelevant and at worst meaningless. No, the fact that multiplication is defined in terms of addition does not mean that it is required or natural to evaluate multiplication before addition when parsing a mathematical expression. The latter is a purely syntactic convention. It is arbitrary. It isn’t “accounting.”