Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
complex
/
ccos.c
blob: f32e1fadfbf3439f0d804013f2235bf4bf2497a0 [
file
] [
log
] [
blame
]
#include
"complex_impl.h"
/* cos(z) = cosh(i z) */
double
complex ccos
(
double
complex z
)
{
return
ccosh
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
}