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