Sign in
chromium
/
external
/
github.com
/
WebAssembly
/
musl
/
5b546faa67544af395d6407553762b37e9711157
/
.
/
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
));
}