function
<cmath> <ctgmath>
coshdouble cosh (double x); float coshf (float x);long double coshl (long double x);
double cosh (double x); float cosh (float x);long double cosh (long double x);
double cosh (double x); float cosh (float x);long double cosh (long double x); double cosh (T x); // additional overloads for integral types
Compute hyperbolic cosine
Returns the hyperbolic cosine of x.Header
<tgmath.h>provides a type-generic macro version of this function.
If an overflow
range erroroccurs, the global variable
errnois set to
ERANGE.
1
2
3
4
5
6
7
8
9
10
11
12
/* cosh example */
#include <stdio.h> /* printf */
#include <math.h> /* cosh, log */
int main ()
{
double param, result;
param = log(2.0);
result = cosh (param);
printf ("The hyperbolic cosine of %f is %f.\n", param, result );
return 0;
}
The hyperbolic cosine of 0.693147 is 1.250000.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4