Latest web development tutorials

C library functions - sinh ()

C standard library - <math.h> C standard library - <math.h>

description

C library functionsdouble sinh (double x) Returns the hyperbolic sine of x.

statement

Here is sinh () function's declaration.

double sinh(double x)

parameter

  • x - floating-point value.

return value

This function returns the hyperbolic sine of x.

Examples

The following example demonstrates sinh () function is used.

#include <stdio.h>
#include <math.h>

int main ()
{
   double x, ret;
   x = 0.5;

   ret = sinh(x);
   printf("%lf 的双曲正弦是 %lf 度", x, ret);
   
   return(0);
}

Let's compile and run the above program, which will result in the following:

0.500000 的双曲正弦是 0.521095 度

C standard library - <math.h> C standard library - <math.h>