The atanh() function returns the inverse hyperbolic tangent of a number.
PHP atanh() Function has the following syntax.
atanh(number);
Parameter | Is Required | Description |
---|---|---|
number | Required. | A number |
Item | Description |
---|---|
Return Value | The hyperbolic tangent of number |
Return Type | Float |
Return the inverse hyperbolic tangent of different numbers:
<?php
echo(atanh(M_PI_4) . "\n");
echo(atanh(0.50) . "\n");
echo(atanh(-0.50) . "\n");
echo(atanh(-1));
?>
The code above generates the following result.