source: trunk/libs/newlib/src/newlib/libm/complex/clog10f.c @ 620

Last change on this file since 620 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 232 bytes
Line 
1#include <complex.h>
2#include <math.h>
3
4float complex
5clog10f(float complex z)
6{
7        float complex w;
8        float p, rr;
9
10        rr = cabsf(z);
11        p = log10f(rr);
12        rr = atan2f(cimagf(z), crealf(z)) * (float) M_IVLN10;
13        w = p + rr * I;
14        return w;
15}
Note: See TracBrowser for help on using the repository browser.