English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Thistanh()
The function returns the hyperbolic tangent of the specified value.
tanh(val)
val-radian value
Thistanh()
The function returns the hyperbolic tangent of the specified value val.
The following is to get 0 and1Example of the hyperbolic tangent of:
<?php echo(tanh(0) . "<br>"); echo(tanh(1) . "<br>"); ?>
Output Result
0<br>0.76159415595576<br>
Let's see an example to get the constant M_PI_4Example of the hyperbolic tangent of-
<?php echo(tanh(M_PI_4)); ?>
Output Result
0.65579420263267
Let's look at an example to get the value 0.5and-0.5The hyperbolic tangent of 0-
<?php echo(tanh(0.50) . "<br>"); echo(tanh(-0.50)); ?>
Output Result
0.46211715726001<br>-0.46211715726001
Let's look at another example to get the hyperbolic tangent of a negative value-
<?php echo(tanh(-5) . "<br>"); echo(tanh(-10)); ?>
Output Result
-0.9999092042626<br>-0.99999999587769