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