Sign in
fuchsia
/
zircon
/
sandbox/voydanoff/dwc3-cpp
/
.
/
third_party
/
ulib
/
musl
/
src
/
complex
/
csin.c
blob: 8204e904117df5e77020d022d2d721d231180e15 [
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
));
}