Complex<T>.Sqrt Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Sqrt(T) Returns the first square root of a real number.
Sqrt(Complex<T>) Returns the first square root of a complex number.

Complex<T>.Sqrt(T)

Returns the first square root of a real number.
C#
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.

Complex<T>.Sqrt(Complex<T>)

Returns the first square root of a complex number.
C#
public static Complex<T> Sqrt(
	Complex<T> z
)

Parameters

z  Complex<T>
A complex number

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.

See Also