Files
semi-libc/src/complex/cpow.c
T
Szabolcs NagyandRich Felker 2d72b58070 math: move complex math out of libm.h
This makes it easier to build musl math code with a compiler that
does not support complex types (tcc) and in general more sensible
factorization of the internal headers.
2019-04-17 13:03:52 -04:00

9 lines
164 B
C

#include "complex_impl.h"
/* pow(z, c) = exp(c log(z)), See C99 G.6.4.1 */
double complex cpow(double complex z, double complex c)
{
return cexp(c * clog(z));
}