Everything

cpowf / cpow / cpowl


Calculates a power of a complex number.

[Format]

#include <complex.h>

float complex cpowf(float complex x, float complex y);

double complex cpow(double complex x, double complex y);

long double complex cpowl(long double complex x, long double complex y);

[Parameters]

x Value to be raised to a power

y Power value

[Return values]

Normal: Value of x raised to the power y

Abnormal: Domain error: Returns not-a-number.

[Remarks]

A domain error occurs if x is 0.0 and y is 0.0 or smaller, or if x is negative and y is not an integer.

The branch cut for the first parameter of the cpow function group is along the negative real axis.