1 2 3 4 5 6 7 8 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; }