mirror of
https://github.com/ziglang/zig.git
synced 2026-01-15 20:05:16 +00:00
9 lines
164 B
C
Vendored
9 lines
164 B
C
Vendored
#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));
|
|
}
|