extend cmath (some of the functions are dummy)
[libm] / src / cmath / catanhf.c
diff --git a/src/cmath/catanhf.c b/src/cmath/catanhf.c
new file mode 100644 (file)
index 0000000..e1d1e64
--- /dev/null
@@ -0,0 +1,7 @@
+#include "libm.h"
+
+float complex catanhf(float complex z)
+{
+       z = catanf(cpackf(-cimagf(z), crealf(z)));
+       return cpackf(cimagf(z), -crealf(z));
+}