musl/src/complex/ccos.c

9 lines
138 B
C

#include "complex_impl.h"
/* cos(z) = cosh(i z) */
double complex ccos(double complex z)
{
return ccosh(CMPLX(-cimag(z), creal(z)));
}