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/ctanhf.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/libm/ctanhf.c (limited to 'lib/libm/ctanhf.c') diff --git a/lib/libm/ctanhf.c b/lib/libm/ctanhf.c new file mode 100644 index 00000000..6574e2c5 --- /dev/null +++ b/lib/libm/ctanhf.c @@ -0,0 +1,13 @@ +#include +#include + +float complex ctanhf(float complex z) +{ + float x, y, d; + + x = crealf(z); + y = cimagf(z); + d = coshf(2.0f * x) + cosf(2.0f * y); + + return sinhf(2.0f * x) / d + (sinf(2.0f * y) / d) * I; +} -- cgit v1.2.3