| Post Reply | RetroFed Forum Forum Index » Showerthoughts |
| Author | Message | ||
|---|---|---|---|
nocturne
slrpnk.net
nocturne@slrpnk.netJoined: 2025-06-13 |
This is the kind of shower thought I have. I am envious of those that have real shower thoughts |
||
| 23 Original | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
Sincere question: why do you put that negative -27 in parentheses? |
||
| 7 | |||
mschae
discuss.mschae23.de
mschae@discuss.mschae23.deJoined: 2026-02-27 |
Sincere question: why do you put that negative -27 in parentheses?
|
||
| 14 | |||
|
bob_omb_battlefield
sh.itjust.works
bob_omb_battlefield@sh.itjust.works Joined: 2023-07-08 |
Sincere question: why do you put that negative -27 in parentheses?
Presumably to avoid ambiguity as to whether the thing to exponentiate is 27 or -27. |
||
| 2 | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
-27^2/3 would come out to a different number, because the exponentiation has a higher precedence than the negation
Ah, so without parentheses, it would be: |
||
| 5 | |||
mschae
discuss.mschae23.de
mschae@discuss.mschae23.deJoined: 2026-02-27 |
Ah, so without parentheses, it would be: x = -27^2 x / 3? That doesn't sound very intuitive though...
yup:
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). |
||
| 5 | |||
printf("%s", name);
piefed.blahaj.zone
akunohana@piefed.blahaj.zoneJoined: 2026-03-30 |
yup: (-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).
Thanks! 😃 |
||
| 3 | |||
|
AHemlocksLie
lemmy.zip
AHemlocksLie@lemmy.zip Joined: 2024-03-10 |
(-27)^2/3^ 3^3^ = 27 => 3 = 27^1/3^ => -3 = (-27)^1/3^ => (-27)^2/3^ = ((-27)^1/3^)^2^ = (-3)^2^ = 9 |
||
| 7 | |||
nocturne
slrpnk.net
nocturne@slrpnk.netJoined: 2025-06-13 |
Sincere question: why do you put that negative -27 in parentheses?
-27^2/3^ is a different answer and problem than (-27)^2/3^. (-27)^2^ is (-27)(-27) while -27^2^ is (-27)(27). |
||
| 2 | |||
TranquilTurbulence
lemmy.zip
TranquilTurbulence@lemmy.zipJoined: 2024-05-19 |
-27^2/3^ is a different answer and problem than (-27)^2/3^. (-27)^2^ is (-27)(-27) while -27^2^ is (-27)(27).
I like to think of |
||
| 3 | |||
TranquilTurbulence
lemmy.zip
TranquilTurbulence@lemmy.zipJoined: 2024-05-19 |
You're having some complex thoughts. |
||
| 5 | |||
|
wholookshere
lemmy.blahaj.zone
wholookshere@lemmy.blahaj.zone Joined: 2024-06-13 |
I like to think of -27^2 as -(27^2).
That's the common shorthand yes, but its still treated like its there. The other interpretation is just as valid though. |
||
| 3 | |||
|
TrippinMallard
lemmy.ml
TrippinMallard@lemmy.ml Joined: 2026-02-18 |
|
||
| 2 | |||
| Post Reply |
Back to top |