diff options
Diffstat (limited to 'src/complex/cacosf.c')
-rw-r--r-- | src/complex/cacosf.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/complex/cacosf.c b/src/complex/cacosf.c new file mode 100644 index 00000000..563766e7 --- /dev/null +++ b/src/complex/cacosf.c @@ -0,0 +1,9 @@ +#include "libm.h" + +// FIXME + +float complex cacosf(float complex z) +{ + z = casinf(z); + return cpackf((float)M_PI_2 - crealf(z), -cimagf(z)); +} |