ATANH(3) Library Functions Manual ATANH(3)

atanhinverse hyperbolic tangent function

#include <math.h>

double
atanh(double x);

long double
atanhl(long double x);

float
atanhf(float x);

The () function computes the inverse hyperbolic tangent of the real argument x.

atanh(±0) returns ±0.

(±1) returns ±infinity and raises the "divide-by-zero" floating-point exception.

(x) returns a NaN and raises the "invalid" floating-point exception for |x| > 1.

If you need to apply the atanh() function to SIMD vectors or arrays, using the following functions provided by the Accelerate.framework may give significantly better performance:

#include <Accelerate/Accelerate.h>

vFloat (vFloat x);
void (float *y, const float *x, const int *n);
void (double *y, const double *x, const int *n);

acosh(3), asinh(3), exp(3), math(3)

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

December 11, 2006 BSD 4.3