When I take the square root of -1 it gives me an error:
invalid value encountered in sqrt
How do I fix that?
/////////
arr=sqrt(-1)
print(arr)
OUTPUT
See Question&Answers more detail:osWhen I take the square root of -1 it gives me an error:
invalid value encountered in sqrt
How do I fix that?
/////////
arr=sqrt(-1)
print(arr)
OUTPUT
See Question&Answers more detail:os