diff options
Diffstat (limited to 'src/complex/cpow.c')
-rw-r--r-- | src/complex/cpow.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/complex/cpow.c b/src/complex/cpow.c new file mode 100644 index 00000000..f863588f --- /dev/null +++ b/src/complex/cpow.c @@ -0,0 +1,8 @@ +#include "libm.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)); +} |