# cpowf, cpow, cpowl

< c‎ | numeric‎ | complex

C
 Language headers Type support Dynamic memory management Error handling Program utilities Variadic function support Date and time utilities Strings library Algorithms Numerics Input/output support Localization support Thread support (C11) Atomic operations (C11) Technical Specifications

Complex number arithmetic
Types and the imaginary constant
Manipulation
Power and exponential functions
 cpow csqrt
Trigonometric functions
Hyperbolic functions

 Defined in header `` float complex       cpowf( float complex x, float complex y ); (since C99) double complex      cpow( double complex x, double complex y ); (since C99) long double complex cpowl( long double complex x, long double complex y ); (since C99)

Computes the complex power function xy
, with branch cut for the first parameter along the negative real axis.

## Contents

### Parameters

 x, y - complex argument

### Return value

The complex power xy
.

### Example

```#include <stdio.h>
#include <complex.h>

int main()
{
double complex z = cpow(1.0 + 2.0*I, 2.0+0.0*I);
printf("%f%+fi\n", creal(z), cimag(z));

z = cpow(1.0 + 2.0*I, 1.0+2.0*I);
printf("%f%+fi\n", creal(z), cimag(z));

return 0;
}```

Output:

```-3.000000+4.000000i
-0.222517+0.100709i```

### See also

 csqrtcsqrtfcsqrtl(C99)(C99)(C99) computes the complex square root (function)  cexpcexpfcexpl(C99)(C99)(C99) computes the complex base-e exponential (function)