+ 1
Square Root -1
Is there a way to calculate sqrt. -1 in any programming language?
2 Respostas
+ 4
Python natively supports complex numbers and operations.
a = -1
print(a**0.5)
Output:
(6.123233995736766e-17+1j)
Although it should be (0+1j), it looks like it's within floating point epsilon range of zero.
https://code.sololearn.com/c0d8170pCSmZ/?ref=app
0
Hi H Ξ X V G 0 И
I don’t think you can with real numbers however you could use imanginary numbers to solve the problem