Complex.Sqrt Method (Complex)

 

Returns the square root of a specified complex number.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

public static Complex Sqrt(
	Complex value
)

Parameters

value
Type: System.Numerics.Complex

A complex number.

Return Value

Type: System.Numerics.Complex

The square root of value.

The square root of the complex number value is calculated by using the following formula:

Complex.FromPolarCoordinates(Math.Sqrt(value.Magnitude), value.Phase/2.0)

The Sqrt method for complex numbers corresponds to the Math.Sqrt method for real numbers.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Return to top
Show: