diff options
Diffstat (limited to 'lib/libm/cacos.c')
| -rw-r--r-- | lib/libm/cacos.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libm/cacos.c b/lib/libm/cacos.c new file mode 100644 index 00000000..1248e72f --- /dev/null +++ b/lib/libm/cacos.c @@ -0,0 +1,8 @@ +#include <math.h> +#include <complex.h> + +double complex cacos(double complex z) +{ + double complex w = casin(z); + return (M_PI_2 - creal(w)) - cimag(w) * I; +} |
