Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-219
tanh
tanh
The tanh function computes the hyperbolic tangent of its argument.
expr
is any valid expression.
Return Value
is the hyperbolic tangent of expr.
Example
This example prints “The hyperbolic tangent is 0.655795.”:
#include <mathh>
#include <stdioh>
int main(void)
{
double r, x;
x = 0.7854;
r = tanh(x);
printf("The hyperbolic tangent is %f.", r);
}
#include <mathh>
double tanh(double expr);