Complex<T>.Sqrt Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
Overload List
Sqrt( | Returns the first square root of a real number. |
Sqrt( | Returns the first square root of a complex number. |
Sqrt(T)
Returns the first square root of a real number.
public static Complex<T> Sqrt(
T a
)
Parameters
- a T
- A real number
Return Value
Complex<T>The square root of a that is either real and positive, or imaginary with a positive imaginary part.
Sqrt(Complex<T>)
Returns the first square root of a complex number.
public static Complex<T> Sqrt(
Complex<T> z
)
Parameters
Return Value
Complex<T>The square root of z that is either real and positive, or has a positive imaginary part.
Remarks
The square root of a complex number is not uniquely defined. If x is a square root of z, then -x is also a square root of z. This method returns the square root in the left half of the complex plane.