about summary refs log tree commit diff
path: root/src/complex/cacoshf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/complex/cacoshf.c')
-rw-r--r--src/complex/cacoshf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/complex/cacoshf.c b/src/complex/cacoshf.c
new file mode 100644
index 00000000..37ff8800
--- /dev/null
+++ b/src/complex/cacoshf.c
@@ -0,0 +1,7 @@
+#include "libm.h"
+
+float complex cacoshf(float complex z)
+{
+	z = cacosf(z);
+	return cpackf(-cimagf(z), crealf(z));
+}