C Tutorial/math.h/sinh

Материал из C\C++ эксперт
Перейти к: навигация, поиск

sinh

Item Value Header file math.h Declaration float sinhf(float arg);double sinh(double arg);long double sinhl(long double arg); Return returns the hyperbolic sine of arg.


#include <math.h>
  #include <stdio.h>
  int main(void)
  {
    double val = -1.0;
    do {
      printf("Hyperbolic sine of %f is %f.\n", val, sinh(val));
      val += 0.1;
    } while(val<=1.0);
    return 0;
  }