Format
#include <math.h> double sinh(double x); float sinhf(float x); long double sinhl(long double x);float sinh(float x);
long double sinh(long double x);
Language Level: ANSI, POSIX, XPG4
sinh calculates the hyperbolic sine of x, with x
expressed in radians.
Note:
C++ prototypes
float sinh(float x); long double sinh(long double x);
are disabled when you compile using the lang(compatmath) option.
Return Value
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).
Example
This example computes y as the hyperbolic
sine of pi/2.
#include <math.h> #include <stdio.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 *************************************/ }
![]()
asin -- Calculate Arcsine
atan - atan2 -- Calculate Arctangent
cos -- Calculate Cosine
cosh -- Calculate Hyperbolic Cosine
![]()
_fasin -- Calculate Arcsine
![]()
_fcossin -- Calculate Cosine and Sine
![]()
_fsin -- Calculate Sine
![]()
_fsincos -- Calculate Sine and Cosine
sin -- Calculate Sine
tan -- Calculate Tangent
tanh -- Calculate Hyperbolic Tangent
<math.h>
lang(compatmath) option
