math: new log2f
[musl.git] / src / complex / ccos.c
blobf32e1fadfbf3439f0d804013f2235bf4bf2497a0
1 #include "complex_impl.h"
3 /* cos(z) = cosh(i z) */
5 double complex ccos(double complex z)
7 return ccosh(CMPLX(-cimag(z), creal(z)));