•  biddy   ( @biddy@feddit.nl ) 
    link
    fedilink
    English
    31 year ago

    In your example you lose distributivity. (2+4)2 is 22+4*2, which doesn’t matter for numbers but it matters for algebra. If addition comes first then there’s no way to represent distribution.

    •  Kogasa   ( @kogasa@programming.dev ) 
      link
      fedilink
      English
      3
      edit-2
      1 year ago

      The distributive law, assuming commutativity and other axioms, is a*(b+c) = (a*b) + (a*c). Notice how it does not matter in which order you evaluate + and * in this expression due to my use of parentheses.

      PEMDAS is notation. It has no influence on the actual underlying math, only how we write it.