microsoft / calculator

Windows Calculator: A simple yet powerful calculator that ships with Windows
MIT License
29.78k stars 5.4k forks source link

-1^2 is -1 not 1 #2205

Closed ghost closed 3 months ago

ghost commented 4 months ago

Describe the bug

Steps To Reproduce

Expected behavior

Screenshots

Device and Application Information

Additional context

Requested Assignment

If possible, I would like to fix this. I'm just reporting this problem. I don't want to fix it.

raven-xr commented 4 months ago

Problem with -1^2 = 1, when its -1

That's not a problem. Actually, -1^2 = -1. You square one but not the minus behind it. And you get -(1*1) = -1. But if we take -1 in parentheses we get (-1)^2 that really gives us 1

WarFiN123 commented 3 months ago

Problem with -1^2 = 1, when its -1

That's not a problem. Actually, -1^2 = -1. You square one but not the minus behind it. And you get -(1*1) = -1. But if we take -1 in parentheses we get (-1)^2 that really gives us 1

yea but it still is wrong

KParthSingh commented 3 months ago

What. -1^2 is 1 not -1 is this a troll report?

WarFiN123 commented 3 months ago

What. -1^2 is 1 not -1 is this a troll report?

this is not a troll report. u can search it on google. -1^2 = -1 whereas (-1)^2 = 1. Hope this helps

KParthSingh commented 3 months ago

-1^2 = -1 whereas (-1)^2 = 1. Hope this helps

Fuck my life was a lie. You're right

MovGP0 commented 3 months ago

I think we should close this issue

WarFiN123 commented 3 months ago

I think we should close this issue

Why so?

raven-xr commented 2 months ago

I think we should close this issue

Why so?

Because -1^2 = -1 but (-1)^2 = 1. So the issue isn't actually an issue. You shouldn't have skipped your math lessons (no negative)

image

image

WarFiN123 commented 2 months ago

I think we should close this issue

Why so?

Because -1^2 = -1 but (-1)^2 = 1. So the issue isn't actually an issue. You shouldn't have skipped your math lessons (no negative)

image

image

that is exactly what i was saying, the windows calculator showed 1 for -1^2. Now, its fixed and it shows -1.

WarFiN123 commented 2 months ago

maybe you should've paid more attention to your english classes?