2 ms·
for arbitrary complex values sqrt() gives 2 answers with +- signs so sqrt(square(-i)) = +-i, one of which is x
by NooneAtAll3 7mo ago
for arbitrary complex values sqrt() gives 2 answers with +- signs
so sqrt(square(-i)) = +-i, one of which is x
- syockit 7mo agoI've never seen a CAS that gives two answers for sqrt. Mathematica doesn't, sympy doesn't, and IIRC Maxima also doesn't.
- Armisael16 7mo agoThe sqrt function returns the principle square root, not both. That’s true for all numbers, positive, negative, and complex alike.