Jump to content

Recommended Posts

Posted
23 hours ago, Through the Living Hopper said:

Why did you use abs?

14

because sqrt(1) = +/- 1

given that both 1^2 and (-1)^2 equal 1, the inverse of ^2 (which is sqrt) must give both answers, meaning without the abs() it would be +/-

93

Posted
11 minutes ago, CoderDrag0n8 said:

because sqrt(1) = +/- 1

given that both 1^2 and (-1)^2 equal 1, the inverse of ^2 (which is sqrt) must give both answers, meaning without the abs() it would be +/-

93

Oh yeah, you're right 

94

Posted
1 minute ago, Through the Living Hopper said:

Oh yeah, you're right 

94

Yeah it's my biggest math pet peeve

you can easily and simply express the +/- symbol with sqrt(x^2) unless you are trying to explain why it is sqrt(x^2) is the +/- symbol, in which you have to dig through the friggin unicode and find the = sign with a line through it or just go like +/- which is signifigantly more ambiguous.

95

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...