C Math atanh() Function
Example
Return the inverse hyperbolic tangent of different numbers:
printf("%f", atanh(0.78));
printf("%f", atanh(0.5));
printf("%f", atanh(1));
Try it Yourself »
Definition and Usage
The atanh() function returns the inverse hyperbolic tangent of a number.
The atanh() function is defined in the <math.h> header file.
Syntax
One of the following:
atanh(double number);
Parameter Values
| Parameter | Description |
|---|---|
| number |
Required. A number to find the inverse hyperbolic tangent of, in the range -1 to 1. If the value is outside -1 to 1, it returns NaN (Not a Number). If the value is equal to -1 or 1 it returns -infinity or infinity. |
Technical Details
| Returns: | A double value representing the inverse hyperbolic tangent of a number. |
|---|