this post was submitted on 15 May 2025
392 points (97.8% liked)
Funny
10243 readers
1681 users here now
General rules:
- Be kind.
- All posts must make an attempt to be funny.
- Obey the general sh.itjust.works instance rules.
- No politics or political figures. There are plenty of other politics communities to choose from.
- Don't post anything grotesque or potentially illegal. Examples include pornography, gore, animal cruelty, inappropriate jokes involving kids, etc.
Exceptions may be made at the discretion of the mods.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
you're wrong.
x = -5
is also a solution lmaoIs it though? Doesn't it have to be
(x)²
then? Because-5² = -25
?If you multiply a negative number with a negative number you get a positive number.
Edit: Sorry, misread your comment, I clearly didn't get enough sleep. In printed mathematics, the unary minus sign has a lower precedence than the exponent, but in programming, it's the other way around, with the unary minus being applied first. So your right in printed mathematics, but wrong in programming.
No they're wrong in mathematics too. -5^2 is -25, but -5^2 is not the same as x^2 where x= -5. No brackets needed on x.