coshl
Hyperbolic cosine function
Description
The cosh function computes the hyperbolic cosine of x, which is defined through:Example:
Example - Hyperbolic cosine function
Workings
#include <stdio.h> #include <math.h> int main(void) { double x = 0.5; double result = cosh(x); printf("The hyperbolic cosine of %lf is %lf\n", x, result); return 0; }
Solution
Output:
The hyperbolic cosine of 0.500000 is 1.127626