nocturne@slrpnk.net to Showerthoughts@lemmy.world · 1 month ago(-27)^2/3message-squaremessage-square12linkfedilinkarrow-up130arrow-down17file-text
arrow-up123arrow-down1message-square(-27)^2/3nocturne@slrpnk.net to Showerthoughts@lemmy.world · 1 month agomessage-square12linkfedilinkfile-text
minus-squareprintf("%s", name);@piefed.blahaj.zonelinkfedilinkEnglisharrow-up5·1 month agoAh, so without parentheses, it would be: x = -27^2 x / 3? That doesn’t sound very intuitive though…
minus-squaremschae@discuss.mschae23.delinkfedilinkEnglisharrow-up5·edit-21 month agoyup: (-27)^2/3 = ((-27) ^ 2) / 3 -27^2/3 = (-(27 ^ 2)) / 3 The reason is that you almost always want the negation to happen after the exponentiation, because it otherwise wouldn’t have any effect (at least when the exponent is even).
Ah, so without parentheses, it would be:
x = -27^2
x / 3?
That doesn’t sound very intuitive though…
yup:
(-27)^2/3=((-27) ^ 2) / 3-27^2/3=(-(27 ^ 2)) / 3The reason is that you almost always want the negation to happen after the exponentiation, because it otherwise wouldn’t have any effect (at least when the exponent is even).
Thanks! 😃