Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
complex
/
ccos.c
blob: 645aec29a9dc013de43e3bb4bfed7d36d671a39b [
file
] [
log
] [
blame
]
#include
"libm.h"
/* cos(z) = cosh(i z) */
double
complex ccos
(
double
complex z
)
{
return
ccosh
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
}