PHP atanh () function
Examples
Returns the number of different inverse hyperbolic tangent:
<?php
echo(atanh(M_PI_4) . "<br>");
echo(atanh(0.50) . "<br>");
echo(atanh(-0.50) . "<br>");
echo(atanh(1) . "<br>");
echo(atanh(-1));
?>
echo(atanh(M_PI_4) . "<br>");
echo(atanh(0.50) . "<br>");
echo(atanh(-0.50) . "<br>");
echo(atanh(1) . "<br>");
echo(atanh(-1));
?>
Running instance »
Definition and Usage
atanh () function returns the inverse hyperbolic tangent of a number.
grammar
atanh( number );
参数 | 描述 |
---|---|
number | 必需。规定一个数。 |
technical details
return value: | number inverse hyperbolic tangent. |
---|---|
Return type: | Float |
PHP version: | 4.1+ |
PHP Update Log: | PHP 5.3: This function is available on all platforms. |
PHP Math Reference