C <math.h> - sinh() Function
The C <math.h> sinh() function returns hyperbolic sine of a value. The hyperbolic sine of x is defined as:
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 example below, 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