projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
extend cmath (some of the functions are dummy)
[libm]
/
src
/
cmath
/
ccos.c
diff --git
a/src/cmath/ccos.c
b/src/cmath/ccos.c
index
9757e6a
..
5754c23
100644
(file)
--- a/
src/cmath/ccos.c
+++ b/
src/cmath/ccos.c
@@
-1,5
+1,7
@@
#include "libm.h"
+/* cos(z) = cosh(i z) */
+
double complex ccos(double complex z)
{
return ccosh(cpack(-cimag(z), creal(z)));