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/ctanl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/libm/ctanl.c (limited to 'lib/libm/ctanl.c') diff --git a/lib/libm/ctanl.c b/lib/libm/ctanl.c new file mode 100644 index 00000000..a410db0e --- /dev/null +++ b/lib/libm/ctanl.c @@ -0,0 +1,17 @@ +#include "__complex.h" + +long double complex ctanl(long double complex z) +{ + long double d = cosl(2.0L * creall(z)) + coshl(2.0L * cimagl(z)); + + if (fabsl(d) < 0.25L) { + d = ctansl(z); + } + + if (d == 0.0L) { + return HUGE_VALL + HUGE_VALL * (long double complex)I; + } + + return sinl(2.0L * creall(z)) / d + + (sinhl(2.0L * cimagl(z)) / d) * (long double complex)I; +} -- cgit v1.2.3