cexp - chung-leong/qb GitHub Wiki

cexp - Complex exponential of e

float[2] cexp( float[2] $x )

cexp() calculates e raised to the power of complex number z.

Parameters:

z - The exponent. 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.

Return Value:

e to the power of z. The size of the return value will match that of z.

Version

1.0 and above.