ComplexArg(x)

Syntax

Result = ComplexArg(x)

Description

Returns the phase angle (radian) of complex number x.

Data type

x : Complex type (Complex)

Result : Double precision floating point type (Double)

Example of use

Dim a As Complex, b As Double, c As Double, pi As Double
a = ComplexSet(1.5, 2.0)
b = ComplexArg(a)
pi = 3.14159265
c = b * 180 / pi      ‘ radian -> degree