cpow - chung-leong/qb GitHub Wiki

cpow - Complex exponential expression

float[2] cpow( float[2] $z, float[2] $exp )

pow() returns z raised to the power of exp.

Parameters:

z - The base to use. It can be one two-element array or an array of two-element arrays. z[0] should contain the real part and z[1] should contain the imaginary part.

exp - The exponent. It can be one two-element array or an array of two-element arrays. exp[0] should contain the real part and exp[1] should contain the imaginary part.

Return Value:

z raised to the power of exp. The size of the return value will match that of the larger of z and exp.

Version

1.0 and above.