Complex.Sqrt Method

Returns the square root of a specified complex number.

Namespace:  System.Numerics
Assemblies:   System.Runtime.Numerics (in System.Runtime.Numerics.dll)
  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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft