1 2 3 4 5 6 7 8 9
#include "libm.h" /* atanh = -i atan(i z) */ double complex catanh(double complex z) { z = catan(CMPLX(-cimag(z), creal(z))); return CMPLX(cimag(z), -creal(z)); }