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/clog10.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/libm/clog10.c (limited to 'lib/libm/clog10.c') diff --git a/lib/libm/clog10.c b/lib/libm/clog10.c new file mode 100644 index 00000000..a1db1663 --- /dev/null +++ b/lib/libm/clog10.c @@ -0,0 +1,11 @@ +#include +#include "__complex.h" + +double complex clog10(double complex z) +{ + double p, rr; + rr = cabs(z); + p = log10(rr); + rr = atan2(cimag(z), creal(z)) * M_IVLN10; + return p + rr * (double complex)I; +} -- cgit v1.2.3