<-- Previous || Up || Next -->

Phase Angle Function
Math Trig Complex Class

Public Function PhaseAngle( _
    ByVal vX As Variant _
    ) As Variant

"Phase Angle"
Returns the phase angle of a rectangular coordinate pair represented by a complex number.

Examples:
    PhaseAngle("1|1") = 0.785398163397448
    PhaseAngle("2|2") = 0.785398163397448
    PhaseAngle("2|3") = 0.982793723247329
    PhaseAngle("2|4") = 1.10714871779409
    PhaseAngle("-2|-2") = -2.35619449019234
    PhaseAngle("-2|-4") = -2.0344439357957
    PhaseAngle("2|0") = 0
vX: Number whose phase angle is returned. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.