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