C sinh()

The sinh() function defined in the math.h header file. It helps to return the hyperbolic sine value of the given number in radians. 

double sinh( double x ); #where x should be in double

Also, two functions sinhf() and sinhl() were used with type float and long double respectively.

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

sinh() Parameters:

The sinh() function takes a single parameter. Using cast operator we can explicitly convert the type to double to find the hyperbolic sine of type int, float, or long double.

Parameter Description Required / Optional
double value Any double value from negative to positive Required

sinh() Return Value

The return value of sinh() function is of type double in radians.

Input Return Value
any value from negative to positive double value in radians

Examples of sinh()

Example 1: Working of sinh() function in C?

#include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
    double ang = 2.50, output;
    output = sinh(ang);
    printf("The Sine hyperbolic of %.2lf (in radians) is %.2lf", ang, output);
    return 0;


The Sine hyperbolic of 2.50 (in radians) is 6.05

Example 2: How sinh() works in C?

#include <stdio.h>
#include <math.h>
int main (){
 double v, output;
   v = 0.5;

   output = sinh(v);
   printf("The hyperbolic sine of %lf is %lf degrees", v, output);


The hyperbolic sine of 0.500000 is 0.521095 degrees