How to use tanh in PHP
This article describe about tanh() function in PHP.
tanh() function
This function return a number that show the hyperbolic tangent of an angle.
Syntax
Parameter |
Description |
x |
Required. A number |
Example
<html>
<body>
<?php
echo(tanh(M_PI_4) . "<br />");
echo(tanh(0.70) . "<br />");
echo(tanh(-0.70) . "<br />");
echo(tanh(7) . "<br />");
echo(tanh(14) . "<br />");
echo(tanh(-7) . "<br />");
echo(tanh(-14))
?>
</body>
</html> |
Output

You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here