repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rewrite pthread_key_delete to use global thread list
[musl.git]
/
src
/
complex
/
csin.c
blob
ad8ae67ad99a59983cd00b6fbd5fe83b2071e667
1
#include
"libm.h"
2
3
/* sin(z) = -i sinh(i z) */
4
5
double complex
csin
(
double complex
z
)
6
{
7
z
=
csinh
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
8
return
CMPLX
(
cimag
(
z
), -
creal
(
z
));
9
}