![]() |
VOOZH | about |
sinh(arg) / cosh(arg)
Where, sinh() is the hyperbolic sine function and cosh() is the hyperbolic cosine function. Syntax:float tanh($value)Parameters: This function accepts a single parameter $value. It is the number whose hyperbolic tangent value you want to find. The value of this parameter must be in radians. Return Value: It returns a floating point number which is the hyperbolic tangent value of a number passed to it as argument. Examples:
Input : tanh(0.50) Output : 0.46211715726001 Input : tanh(-0.50) Output : -0.46211715726001 Input : tanh(5) Output : 0.9999092042626 Input : tanh(M_PI_4) Output : 0.65579420263267Below programs, taking different values of $value are used to illustrate the tanh() function in PHP:
0.46211715726001
-0.46211715726001
0.9999092042626
0.65579420263267