numpy.emath.sqrt#
- emath.sqrt(x)[source]#
Compute the square root of x.
For negative input elements, a complex value is returned (unlike
numpy.sqrt
which returns NaN).- Parameters:
- xarray_like
The input value(s).
- Returns:
- outndarray or scalar
The square root of x. If x was a scalar, so is out, otherwise an array is returned.
See also