Mega Code Archive
Categories
/
C
/
Code Snippets
How to use cosh
#include
#include
int main(void) { double val = -2.0; do { printf("Hyperbolic cosine of %f is %f.\n", val, cosh(val)); val += 0.1; } while(val<=2.0); return 0; }