1 2 3 4 5 6 7 8
#include <complex.h> float complex cacoshf(float complex z) { float complex w; return clogf(z + csqrtf(z + 1) * csqrtf(z - 1)); }