Sign in
android
/
trusty
/
external
/
musl
/
a730639273fd5040ea3528a9fc7b8590f46a6702
/
.
/
src
/
complex
/
csin.c
blob: 535c4bf8b0b0cd4432563fc54d49f050c92270b3 [
file
] [
log
] [
blame
]
#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
));
}