-
Notifications
You must be signed in to change notification settings - Fork 15
cpow
Chung Leong edited this page Jan 10, 2022
·
4 revisions
cpow - Complex exponential expression
float[2] cpow( float[2] $z, float[2] $exp )
pow() returns z raised to the power of exp.
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.
z raised to the power of exp. The size of the return value will match that of the larger of z and exp.
1.0 and above.