source:
azure_iot_hub/trunk/musl-1.1.18/src/complex/casinf.c
Last change on this file was 389, checked in by , 5 years ago | |
---|---|
|
|
File size: 223 bytes |
Line | |
---|---|
1 | #include "libm.h" |
2 | |
3 | // FIXME |
4 | |
5 | float complex casinf(float complex z) |
6 | { |
7 | float complex w; |
8 | float x, y; |
9 | |
10 | x = crealf(z); |
11 | y = cimagf(z); |
12 | w = CMPLXF(1.0 - (x - y)*(x + y), -2.0*x*y); |
13 | return clogf(CMPLXF(-y, x) + csqrtf(w)); |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.