sinh C Library Function

The function double sinh(double x); returns the hyperbolic sine of x radians.

Function prototype of sinh

double sinh(double x);

  • x : A floating point value representing an angle in radians.

Return value of sinh

It returns the hyperbolic sine of x.

C program using sinh function

The following program shows the use of sinh function to calculate hyperbolic sine of an angle in radian.

sinh C Library Function

#include <stdio.h>
#include <math.h>
 
int main(){
    double value, radian;
    printf("Enter a number\n");
    scanf("%lf", &radian);
     
    value = sinh(radian);
    printf("The hyperbolic sine of %lf is %lf\n", radian, value);
         
    return 0;
}

Output

Enter a number
0.25
The hyperbolic sine of 2.500000 is 0.252512