Home >>C Math Functions >C math sinh() function
The C math double sinh(double x) function is used to return the hyperbolic sine of any given argument X. It takes a single argument and returns the value of type double. This function is defined in <math.h> header file.
Syntax:double sinh(double x)
x − It is the floating point value.
Here is an example of sinh() function
#include <stdio.h>
#include <math.h>
int main () {
double x, ret;
x = 0.5;
ret = sinh(x);
printf("The hyperbolic sine of %lf is %lf degrees", x, ret);
return(0);
}
#include <stdio.h>
#include <math.h>
int main () {
double x, ret;
x = 0.75;
ret = sinh(x);
printf("The hyperbolic sine of %lf is %lf degrees", x, ret);
return(0);
}