From 885f5974cdf65b59415837ae97f5a14ef1350670 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 19:20:15 +0100 Subject: feat: add gzip and new headers --- lib/libm/ctanh.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/libm/ctanh.c (limited to 'lib/libm/ctanh.c') diff --git a/lib/libm/ctanh.c b/lib/libm/ctanh.c new file mode 100644 index 00000000..a99e1496 --- /dev/null +++ b/lib/libm/ctanh.c @@ -0,0 +1,13 @@ +#include +#include + +double complex ctanh(double complex z) +{ + double x, y, d; + + x = creal(z); + y = cimag(z); + d = cosh(2.0 * x) + cos(2.0 * y); + + return sinh(2.0 * x) / d + (sin(2.0 * y) / d) * (double complex)I; +} -- cgit v1.2.3