The cmath.sqrt()
function computes the square root of a given complex number.
cmath.sqrt(x)
x |
The value(real or complex) whose square root is to be calculated. If the value is a real number, it is first converted to a complex number before the operation. |