PHP: tanh() function
Description
The tanh() function returns the hyperbolic tangent of a number.
Version:
(PHP 4 and above)
Syntax:
tanh(num)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
num | A number. | Required | Float |
Return value:
The hyperbolic tangent of num.
Value Type: Float.
Example:
Output:
Hyperbolic tangent of 0 is 0 Hyperbolic tangent of 0.9999092042626 is 0.9999092042626 Hyperbolic tangent of -0.99999999587769 is -0.99999999587769 Hyperbolic tangent of is
View the example in the browser
See also
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics