Loading...
Select Version
&pagelevel(4)&pagelevel
Definition | #include <math.h> double cosh(double x); These functions calculate the hyperbolic cosine for the floating-point number x. | ||
Return val. |
| for a floating-point number x. | |
| depending on the function type, if an overflow occurs. | ||
Example | The following program lists the hyperbolic cosine values corresponding to input values in the interval [-1.0, +1.0]. #include <math.h> #include <stdio.h> int main(void) { double x; for (x = -1.0; x < 1.0; x = x + 0.1) printf("cosh(%f) = %f\n", x, cosh(x)); return 0; } | ||
See also | acos, cos, sin, asin, sinh, tan, atan, atan2, tanh |