Cosh Function

  • It is used for getting the HyperBolic Cosine value of the argument .
  • The value of the argument should be in Radian .

  • Syntax:

    float coshf(float arg);
    double cosh(double arg);
    long double coshl(long double arg);


    #include <math.h>
    #include <stdio.h>
      int main()
        double x = -2.0;
        do {
          printf("HyperBolic Cosine of %f is %f.\n", x, cosh(x));
          x += 0.2;
        } while(x<=2.0);
        return 0;