OpenBSD Handbook Manuals
Search

atanh(3)

Canonical URL: /atanh.3/

ATANH(3) Library Functions Manual ATANH(3)

atanh, atanhf, atanhlinverse hyperbolic tangent functions

/* -lm */
#include <math.h>

double
atanh(double x);

float
atanhf(float x);

long double
atanhl(long double x);

The () function computes the inverse hyperbolic tangent of the real argument x. The () function is a single precision version of atanh(). The () function is an extended precision version of atanh().

If |x|>=1, atanh(x), atanhf(x) and atanhl(x) return +infinity, -infinity or NaN, and set the global variable errno to EDOM.

acosh(3), asinh(3), exp(3), fpclassify(3)

The atanh() function appeared in 4.3BSD.

OpenBSD 7.9 June 7, 2025 ATANH(3)

Need conceptual guidance? Continue in the OpenBSD Handbook.