CPolarfunction
Sets the complex number from the polar representation.
Syntax
FUNCTION CPolar (BYVAL r AS DOUBLE, BYVAL theta AS DOUBLE) AS _complex
Parameters
| Name | Description | |
|---|---|---|
r | The modulus of complex number. | |
theta | The 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