Returns the hyperbolic tangent of distinct numbers:
<?phpecho(tanh(M_PI_4) . "<br>");echo(tanh(0.50) . "<br>");echo(tanh(-0.50) . "<br>");echo(tanh(5 ) . "<br>");echo(tanh(10) . "<br>");echo(tanh(-5) . "<br>");echo(tanh(-10));?>The tanh() function returns the hyperbolic tangent of a number, defined as sinh(x)/cosh(x).
tanh( number );
| parameter | describe |
|---|---|
| number | Required. Specify a number. |
| Return value: | Hyperbolic tangent of number . |
|---|---|
| Return type: | Float |
| PHP version: | 4.1+ |