projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
initial cmath code and minor libm.h update
[libm]
/
src
/
cmath
/
ccos.c
diff --git a/src/cmath/ccos.c
b/src/cmath/ccos.c
new file mode 100644
(file)
index 0000000..
9757e6a
--- /dev/null
+++ b/
src/cmath/ccos.c
@@ -0,0
+1,6
@@
+#include "libm.h"
+
+double complex ccos(double complex z)
+{
+ return ccosh(cpack(-cimag(z), creal(z)));
+}