CComplex.CArgumentmethod
Returns the argument of this complex number.
Syntax
FUNCTION CArgument () AS DOUBLE
Also documented as
CArg, CPhase — one description covers them all.Description
Returns the argument of this complex number.
Examples
DIM cpx AS CComplex = CComplex(1, 0) PRINT cpx.CArg Output: 0.0
DIM cpx AS CComplex = CComplex(0, 1) PRINT cpx.CArg Output: 1.570796326794897
DIM cpx AS CComplex = CComplex(0, -1) PRINT cpx.CArg Output: -1.570796326794897
DIM cpx AS CComplex = CComplex(-1, 0) PRINT cpx.CArg Output: 3.141592653589793
Reference
- Include file
CComplex.inc - Defined in AfxNova/CComplex.inc:858
- Documented in Numeric Datatypes/CComplex Class.md
- Topic: CComplex Class