diff options
Diffstat (limited to 'src/complex/catanhf.c')
-rw-r--r-- | src/complex/catanhf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/complex/catanhf.c b/src/complex/catanhf.c new file mode 100644 index 00000000..e1d1e648 --- /dev/null +++ b/src/complex/catanhf.c @@ -0,0 +1,7 @@ +#include "libm.h" + +float complex catanhf(float complex z) +{ + z = catanf(cpackf(-cimagf(z), crealf(z))); + return cpackf(cimagf(z), -crealf(z)); +} |