Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
2d72b58070bc43a727b580a46746e87215a60a33
/
.
/
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
));
}