aboutsummaryrefslogtreecommitdiff
path: root/src/complex/csin.c
blob: a342784162869700e7aaad1171b81593c83e346e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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));
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif