this post was submitted on 15 May 2025
403 points (100.0% liked)

Funny

10451 readers
501 users here now

General rules:

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
[–] [email protected] 3 points 1 month ago (6 children)

Is it though? Doesn't it have to be (x)² then? Because -5² = -25 ?

[–] [email protected] 5 points 1 month ago* (last edited 1 month ago) (4 children)

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.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (2 children)

Well that is not debatable, I am talking about the difference between -5² = -25 and (-5)² = 25

[–] [email protected] 8 points 1 month ago* (last edited 1 month ago)

Open desmos. Graph y = x^2. Then graph y = (x)^2. Recognize that both graphs are identical. Realize the flaw in your argument.

load more comments (1 replies)
load more comments (2 replies)
load more comments (3 replies)