How to use tanh in PHP

This article describe about tanh() function in PHP.
  • 1294

tanh() function

This function return a number that show the hyperbolic tangent of an angle.

Syntax

tanh(x)

 

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


tanh-php.jpg

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

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.