This is technically incorrect. While the square root is both the positive and the negative solution, the sqrt (√) operator results in the principal square root. For nonnegative numbers this is the nonnegative square root and more generalised for complex numbers it’s the square root that halves the complex phase.
sqrt(-1) = ±i. The negative answer is also valid.
This is technically incorrect. While the square root is both the positive and the negative solution, the sqrt (√) operator results in the principal square root. For nonnegative numbers this is the nonnegative square root and more generalised for complex numbers it’s the square root that halves the complex phase.
Ah, good point; I’d forgotten that part.