rewrite pthread_key_delete to use global thread list
[musl.git] / src / complex / csin.c
blobad8ae67ad99a59983cd00b6fbd5fe83b2071e667
1 #include "libm.h"
3 /* sin(z) = -i sinh(i z) */
5 double complex csin(double complex z)
7 z = csinh(CMPLX(-cimag(z), creal(z)));
8 return CMPLX(cimag(z), -creal(z));