first commit of the new libm!
[musl] / src / complex / cacosh.c
diff --git a/src/complex/cacosh.c b/src/complex/cacosh.c
new file mode 100644 (file)
index 0000000..c2dfc1b
--- /dev/null
@@ -0,0 +1,9 @@
+#include "libm.h"
+
+/* acosh(z) = i acos(z) */
+
+double complex cacosh(double complex z)
+{
+       z = cacos(z);
+       return cpack(-cimag(z), creal(z));
+}