PHP - atanh() Function
The PHP atanh() function is used to return inverse hyperbolic tangent of a value. The hyperbolic tangent of x is defined as:
Syntax
atanh(number)
Parameters
number |
Required. Specify the value. |
Return Value
Returns the hyperbolic tangent of a value.
Example:
In the below example, atanh() function is used to find out the hyperbolic tangent of a value.
<?php echo atanh(0.1)."\n"; echo atanh(0.5)."\n"; echo atanh(2)."\n"; ?>
The output of the above code will be:
0.10033534773108 0.54930614433405 NAN
❮ PHP Math Functions