about summary refs log tree commit diff
path: root/src/complex/cpow.c
blob: 1137d3911724ced602aceb54cc1b7fff2ee5badb (plain) (blame)
1
2
3
4
5
6
7
8
#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));
}