catanh Function (ROM Call 0x13F)

math.h, timath.h

void catanh (float z_re, float z_im, float *w_re, float *w_im);

Complex hyperbolic area tangent.

catanh calculates the hyperbolic area tangent w = atanh(z) of the complex number which real and imaginary parts are z_re and z_im, and stores real and imaginary part of the result in floating point destinations pointed to by w_re and w_im. The complex hyperbolic area tangent is defined by

atanh(z) = ln ((1 + z) / (1 - z)) / 2

where ln is complex natural logarithm (see cln).


Uses: catan, _bcd_math