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