source:
trunk/libs/newlib/src/newlib/libm/complex/clog10f.c
@
503
Last change on this file since 503 was 444, checked in by , 6 years ago | |
---|---|
File size: 232 bytes |
Line | |
---|---|
1 | #include <complex.h> |
2 | #include <math.h> |
3 | |
4 | float complex |
5 | clog10f(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.