C tanh() function
C tanh() function - Calculate hyperbolic tangent
Syntax:
double tanh(double x)
The tanh() function is calculate the hyperbolic tangent of x.
Parameters:
Name | Description | Required /Optional |
---|---|---|
x | This is the floating point value. | Required |
Return value from tanh()
- Returns the value of the hyperbolic tangent of x.
Example: tanh() function
The following example shows the usage of tanh() function.
Output:
tanh( 1.570796 ) = 0.917152
C Programming Code Editor:
Previous C Programming: C sinh()
Next C Programming: C exp()