Return the hyperbolic tangent of different numbers in PHP
Description
The following code shows how to return the hyperbolic tangent of different numbers.
Example
//from w w w.java2 s.c om
<?php
echo(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 code above generates the following result.