repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
signal.h: add new sa_flags from linux v5.11
[musl.git]
/
src
/
complex
/
ccos.c
blob
f32e1fadfbf3439f0d804013f2235bf4bf2497a0
1
#include
"complex_impl.h"
2
3
/* cos(z) = cosh(i z) */
4
5
double complex
ccos
(
double complex
z
)
6
{
7
return
ccosh
(
CMPLX
(-
cimag
(
z
),
creal
(
z
)));
8
}