Sign in
cobalt
/
cobalt
/
d2bc3b69d823bbaf46d1c4355b23486a85a6d791
/
.
/
third_party
/
musl
/
src
/
complex
/
csin.c
blob: ad8ae67ad99a59983cd00b6fbd5fe83b2071e667 [
file
] [
log
] [
blame
]
#include
"libm.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
));
}