extend cmath (some of the functions are dummy)
[libm] / src / cmath / ctan.c
1 #include "libm.h"
2
3 /* tan(z) = -i tanh(i z) */
4
5 double complex ctan(double complex z)
6 {
7         z = ctanh(cpack(-cimag(z), creal(z)));
8         return cpack(cimag(z), -creal(z));
9 }