CComplex.CPowmethod
Returns this complex number raised to a complex power or to a real number.
Syntax
FUNCTION CPow (BYREF power AS CComplex) AS CComplex
FUNCTION CPow (BYVAL power AS DOUBLE) AS CComplex
Parameters
| Name | Description | |
|---|---|---|
power | A complex or a double number. |
Description
Returns this complex number raised to a complex power.
Returns this complex number raised to a real number.
Examples
DIM cpx AS CComplex = CComplex(1, 1) DIM b AS CComplex = CComplex(2, 2) PRINT cpx.CPow(b) Output: -0.2656539988492412 +0.3198181138561362 * i
DIM cpx AS CComplex = CComplex(1, 1) PRINT cpx.CPow(2) Output: 1.224606353822378e-016 +2 * i
Reference
- Include file
CComplex.inc - Defined in AfxNova/CComplex.inc:1198
- Documented in Numeric Datatypes/CComplex Class.md
- Topic: CComplex Class