Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/mingw/mingwex/complex/catanhl.c')
-rwxr-xr-xwinsup/mingw/mingwex/complex/catanhl.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/complex/catanhl.c b/winsup/mingw/mingwex/complex/catanhl.c
new file mode 100755
index 000000000..50a3be950
--- /dev/null
+++ b/winsup/mingw/mingwex/complex/catanhl.c
@@ -0,0 +1,23 @@
+/* catanhl.c */
+/*
+ Contributed by Danny Smith
+ 2005-01-04
+*/
+
+#include <math.h>
+#include <complex.h>
+
+/* catanh (z) = -I * catan (I * z) */
+
+long double complex catanhl (long double complex Z)
+{
+ long double complex Tmp;
+ long double complex Res;
+
+ __real__ Tmp = - __imag__ Z;
+ __imag__ Tmp = __real__ Z;
+ Tmp = catanl (Tmp);
+ __real__ Res = __imag__ Tmp;
+ __imag__ Res = - __real__ Tmp;
+ return Res;
+}