| ctanh | Function (ROM Call 0x145)

math.h, timath.h

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

Complex hyperbolic tangent.

ctanh calculates the hyperbolic tangent w = tanh(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 tangent is defined by
tanh(z) = sinh(z) / cosh(z)
where sinh and cosh are complex hyperbolic sine and complex hyperbolic cosine (see csinh and ccosh).

Uses: ctan, _bcd_math
Used by: push_acos, push_acosh, push_asin, push_asinh, push_atan, push_atanh, push_cos, push_cosh, push_exp, push_ln, push_log10, push_sin, push_sinh, push_sqrt, push_tanh