Computes the phase of a complex number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static double Arg(
	Complex z
)
Public Shared Function Arg ( _
	z As Complex _
) As Double
public:
static double Arg(
	Complex z
)

Parameters

z
Complex
The argument.

Return Value

The value of arg(z).

Remarks

The phase of a complex number is the angle between the line joining it to the origin and the real axis of the complex plane.

The phase of complex numbers in the upper complex plane lies between 0 and π. The phase of complex numbers in the lower complex plane lies between 0 and -π. The phase of a real number is zero.

See Also