Complex.Sqrt(Complex) 方法

定义

返回指定复数的平方根。Returns the square root of a specified complex number.

public:
 static System::Numerics::Complex Sqrt(System::Numerics::Complex value);
public static System.Numerics.Complex Sqrt (System.Numerics.Complex value);
static member Sqrt : System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Sqrt (value As Complex) As Complex

参数

value
Complex

一个复数。A complex number.

返回

value 的平方根。The square root of value.

注解

复数 value 的平方根是使用以下公式计算的:The square root of the complex number value is calculated by using the following formula:

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

复数的 Sqrt 方法对应于实数的 Math.Sqrt 方法。The Sqrt method for complex numbers corresponds to the Math.Sqrt method for real numbers.

适用于