Hacker News
new
past
comments
ask
show
jobs
points
by
yorwba
11 hours ago
|
comments
by
NooneAtAll3
8 hours ago
|
[-]
for arbitrary complex values sqrt() gives 2 answers with +- signs
so sqrt(square(-i)) = +-i, one of which is x
reply
by
syockit
7 hours ago
|
parent
|
next
[-]
I've never seen a CAS that gives two answers for sqrt. Mathematica doesn't, sympy doesn't, and IIRC Maxima also doesn't.
reply
by
Armisael16
5 hours ago
|
parent
|
prev
|
[-]
The sqrt function returns the principle square root, not both. That’s true for all numbers, positive, negative, and complex alike.
reply