Help Center

CPolarfunction

Sets the complex number from the polar representation.

Numeric DatatypesfunctionAfxComplex.incdocumented

Syntax

FUNCTION CPolar (BYVAL r AS DOUBLE, BYVAL theta AS DOUBLE) AS _complex

Parameters

NameDescription
rThe modulus of complex number.
thetaThe angle with the positive direction of x-axis.

Description

Sets the complex number from the polar representation.

Example

DIM z AS _complex = CPolar(3, 4)

Reference

  • Include file AfxComplex.inc
  • Defined in AfxNova/AfxComplex.inc:186
  • Documented in Numeric Datatypes/Complex Numbers Procedures.md
  • Topic: Complex Numbers Procedures