Submitted by TheManNamedPeterPan t3_z8c5vf in explainlikeimfive
Way2Foxy t1_iybw2wm wrote
Reply to comment by nemplsman in ELI5 why we first multiply, then add by TheManNamedPeterPan
It'd be less convenient to do it addition-first, but the system would still work and be consistent.
Hell there's even Polish notation, which you'd write
(1+2) x 4
as
x+124
nemplsman t1_iybwwmd wrote
So why not just have it be like SDPAEM? (subtract, divide, parentheses, add, exponent, multiply)? It doesn't make sense that the order is entirely arbitrary.
It seems to me that some arbitrary decisions were made, like to have addition before subtraction, or whether to have division before multiplication, but it seems clear the choice (for example) to have multiplication and division before addition and subtraction is not merely arbitrary and rather, is based on multiplication and division having a greater order of magnitude in their effect compared to addition and subtraction. Same with exponents being before multiplication and division.
Way2Foxy t1_iybxmkz wrote
Again, you can have a system that works perfectly well with multiplication prior to addition. There is no "inherent rule in nature" as OP phrased it guiding this.
nemplsman t1_iyby6xr wrote
There seems to be disagreement on this, and not just by me (see my sources).
Way2Foxy t1_iyc1lfu wrote
I don't think we disagree that doing multiplication prior to addition makes sense intuitively.
My point is that there's nothing forcing us to do it that way, and we could have a well defined system where we add and subtract first. If you disagree with that, then fair enough.
Kalirren t1_iycbj65 wrote
No, there -is- something forcing us to do it this way: * distributes over + but + doesn't distribute over *. So if you want to write the distributive property a*(b+c) = a*b+a*c you don't have to use ANY parentheses if you do * before +. And there's no reason why you would try to do it the other way because a+(b*c) != (a+b) * (a+c).
Viewing a single comment thread. View all comments