Share via


Complex.Sqrt Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns the square root of a specified complex number.

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

Syntax

'Declaration
Public Shared Function Sqrt ( _
    value As Complex _
) As Complex
public static Complex Sqrt(
    Complex value
)

Parameters

Return Value

Type: System.Numerics.Complex
The square root of value.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.