Facebook Page Twitter Page LinkedIn Page
× C Standard Library


The C <math.h> sinh() function is used to return hyperbolic sine of a value. The hyperbolic sine of x is defined as:

sinh

where e is an Euler's number.

Syntax

double sinh (double x);
float sinhf (float x);
long double sinhl (long double x);

Parameters

x Specify the value.

Return Value

Returns the hyperbolic sine of a value.

Example:

In the below example, sinh() function is used to find out the hyperbolic sine of a value.

#include <stdio.h>
#include <math.h>
 
int main (){
  printf("%lf\n", sinh(0));
  printf("%lf\n", sinh(2));
  printf("%lf\n", sinh(4));
  return 0;
}

The output of the above code will be:

0.000000
3.626860
27.289917

❮ C <math.h> Library