Syntax
#include <math.h> double sinh(double x);Description
sinh calculates the hyperbolic sine of x, with x expressed in radians.
sinh returns the value of the hyperbolic sine of x. If the result is too large, sinh sets errno to ERANGE and returns the value HUGE_VAL (positive or negative, depending on the value of x).
This example computes y as the hyperbolic sine of pi/2.
#include <math.h>
int main(void)
{
double pi,x,y;
pi = 3.1415926535;
x = pi/2;
y = sinh(x);
printf("sinh( %lf ) = %lf\n", x, y);
return 0;
/****************************************************************************
The output should be:
sinh( 1.570796 ) = 2.301299
****************************************************************************/
}
Related Information