diff options
Diffstat (limited to 'lib/libm/cacosf.c')
| -rw-r--r-- | lib/libm/cacosf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libm/cacosf.c b/lib/libm/cacosf.c new file mode 100644 index 00000000..f44f0067 --- /dev/null +++ b/lib/libm/cacosf.c @@ -0,0 +1,9 @@ +#include <math.h> +#include <complex.h> + +float complex cacosf(float complex z) +{ + float complex w = casinf(z); + + return ((float)M_PI_2 - crealf(w)) - cimagf(w) * I; +} |
