Name
tanh, tanhf, tanhl
- hyperbolic tangent functions
Library
libm.lib
Synopsis
|
long double
tanhl (long double x);
|
Return values
The
tanh,
tanhf
and
tanhl
functions return the hyperbolic tangent value.
Detailed description
The
tanh
and
tanhf
functions compute the hyperbolic tangent of
x.
tanhl
is an alias to the function
tanh.
Examples
#include <math.h>
int main( )
{
double inp = 1.0;
double y;
y = tanh( inp );
printf( "tanh( %f) = %f\n", inp, y );
y = tanhf( inp);
printf( "tanhf( %f) = %f\n", inp, y );
y = tanhl( inp);
printf( "tanhl( %f) = %f\n\n", inp, y );
inp = 2209.0;
y = sqrt( inp);
printf( "sqrt( %f) = %d\n", inp, y );
y = sqrtf( inp);
printf( "sqrtf( %f) = %d\n", inp, y );
y = sqrtl( inp);
printf( "sqrtl( %f) = %d\n", inp, y );
}
Output
tanh ( 1.000000 ) = 0.7615941
tanhf( 1.000000 ) = 0.7615941
tanhl( 1.000000 ) = 0.7615941
See also
acos,
asin,
atan,
atan2,
cos,
cosh,
math,
sin,
sinh,
tan
Feedback
For additional information or queries on this page send feedback
© 2005-2007 Nokia
|
|