blob: 535c4bf8b0b0cd4432563fc54d49f050c92270b3 [file] [log] [blame]
#include "complex_impl.h"
/* sin(z) = -i sinh(i z) */
double complex csin(double complex z)
{
z = csinh(CMPLX(-cimag(z), creal(z)));
return CMPLX(cimag(z), -creal(z));
}