math: move complex math out of libm.h
[oweals/musl.git] / src / complex / ccos.c
1 #include "complex_impl.h"
2
3 /* cos(z) = cosh(i z) */
4
5 double complex ccos(double complex z)
6 {
7         return ccosh(CMPLX(-cimag(z), creal(z)));
8 }