CTANH(3) Library Functions Manual CTANH(3)

ctanhcomplex hyperbolic tangent function

double complex
ctanh(double complex z);

long double complex
ctanhl(long double complex z);

float complex
ctanhf(float complex z);

(z) computes the hyperbolic tangent of the complex floating-point number z.

For all complex floating point numbers z,

ctanh(conj(z)) = conj(ctanh(z)),

ctanh(-z) = -ctanh(z).

The symmetries of ctanh() are used to abbreviate the specification of special values.

(0 + 0i) returns 0 + 0i.

(0 + inf i) returns NaN + NaN i, and raises the invalid flag.

(0 + NaN i) returns NaN + NaN i.

(x + inf i) returns NaN + NaN i, and raises the invalid flag, for finite nonzero x.

(x + NaN i) returns NaN + NaN i, for finite nonzero x.

(inf + 0i) returns 1 + 0i.

(inf + yi) returns 1 ± 0i, for finite positive y, with the sign chosen to match the sign of sin(2y).

(inf + inf i) returns 1 + 0i.

(inf + NaN i) returns 1 + 0i.

(NaN + 0i) returns NaN + 0i.

(NaN + yi) returns NaN + NaN i, for nonzero numbers y.

(NaN + NaN i) returns NaN + NaN i.

ctan(3) complex(3)

The ctanh() function conforms to ISO/IEC 9899:2011.

December 11, 2006 BSD 4