import cmath n = -3 print(n **(1/2))print(cmath.sqrt(n))
Standard input is empty
(1.0605752387249068e-16+1.7320508075688772j) 1.7320508075688772j
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!