Name
cosh, coshf, coshl
- hyperbolic cosine function
Library
libm.lib
Synopsis
|
long double
cosh (long double x);
|
Detailed description
The
cosh,
and
coshf
functions compute the hyperbolic cosine of
x.
The function
coshl
is an alias to the function
cosh.
Examples
#include <math.h>
int main( void )
{
double pi = 3.1415926535;
double x, y;
x = pi / 2;
y = cosh( x );
printf( "cosh( %f ) = %f\n", x, y );
y = coshf( x );
printf( "coshf( %f ) = %f\n",x, y );
y = coshl( x );
printf( "coshl( %f ) = %f\n",x, y );
}
Output
cosh( 1.570796 ) = 2.509178
coshf( 1.570796 ) = 2.509178
coshl( 1.570796 ) = 2.509178
See also
acos,
asin,
atan,
atan2,
cos,
math,
sin,
sinh,
tan,
tanh
The
cosh
function conforms to
-isoC.
Feedback
For additional information or queries on this page send feedback
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|