C examples for math.h:atanh
function
<cmath> <ctgmath> <math.h>
Compute area hyperbolic tangent
long double atanhl (long double x); long double atanh (long double x); double atanh (double x); float atanhf (float x); float atanh (float x); double asinh (T x);
Parameter | Description |
---|---|
x | Value to calculate hyperbolic tangent, in the interval [-1,+1]. |
Area hyperbolic tangent of x.
#include <stdio.h> #include <math.h> /* tanh, atanh */ int main ()/*from w w w. j av a2s . c om*/ { double param = tanh(1); double result = atanh(param) ; printf ("The area hyperbolic tangent of %f is %f.\n", param, result); return 0; }