Jump to: navigation, search

Php tanh

From w3cyberlearnings

Contents

PHP function tanh

This function returns the hyperbolic tangent of X, and X is angle. (Equal to: sinh(x)/cosh(x)).

Syntax tanh

X is a number

tanh(X)

Example 1

<?php
echo tanh(M_PI_4);
echo "<br/>";
echo tanh(M_PI_2);
echo "<br/>";
echo tanh(0.45);
echo "<br/>";
echo tanh(-0.45);
?>

Output

0.65579420263267
0.91715233566727
0.42189900525001
-0.42189900525001


Related Links


Navigation
Web
SQL
MISC
References