Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
#define _XOPEN_SOURCE_EXTENDED 1
#include <math.h>
double atanh(double x);
#define _ISOC99_SOURCE
#include <math.h>
float atanhf(float x);
long double atanhl(long double x);
#define _TR1_C99
#include <math.h>
float atanh(float x);
long double atanh(long double x);
Function | Hex | IEEE |
---|---|---|
atanh | X | X |
atanhf | X | X |
atanhl | X | X |
If successful, atanh() returns the hyperbolic arctangent of its argument x.
Special behavior for IEEE: If successful, the function returns the hyperbolic arctangent of its argument x.
If the absolute value of x is greater than 1.0, atanh() sets errno to EDOM and returns NaNQ. If the value of x is equal to 1.0, the function sets errno to ERANGE and returns +HUGE_VAL.