ATANH(3) | Library Functions Manual | ATANH(3) |
atanh
— inverse
hyperbolic tangent function
#include
<math.h>
double
atanh
(double
x);
long double
atanhl
(long
double x);
float
atanhf
(float
x);
The
atanh
()
function computes the inverse hyperbolic tangent of the real argument
x.
atanh
(±0)
returns ±0.
atanh
(±1)
returns ±infinity and raises the "divide-by-zero"
floating-point exception.
atanh
(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
vatanhf
(vFloat
x);
void
vvatanhf
(float
*y, const float *x, const int
*n);
void
vvatanh
(double
*y, const double *x, const int
*n);
The atanh
() function conforms to ISO/IEC
9899:2011.
December 11, 2006 | BSD 4.3 |