blob: 535c4bf8b0b0cd4432563fc54d49f050c92270b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
#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));
}
|