riscv32: add dlsym
[musl.git] / src / complex / ctan.c
blob918717bfcc42233dfdb83493002ea4ca187bde93
1 #include "complex_impl.h"
3 /* tan(z) = -i tanh(i z) */
5 double complex ctan(double complex z)
7 z = ctanh(CMPLX(-cimag(z), creal(z)));
8 return CMPLX(cimag(z), -creal(z));