Home >>C Math Functions >C math sinh() function

C math sinh() function

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)

Parameters:

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);
}

Output:
The hyperbolic sine of 0.500000 is 0.521095 degrees
Example-2

#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);
}

Output:
The hyperbolic sine of 0.750000 is 0.822317 degrees

No Sidebar ads