double sinh (double x);
double sinh (double x); float sinhf (float x);long double sinhl (long double x);
double sinh (double x); float sinh (float x);long double sinh (long double x);
double sinh (double x); float sinh (float x);long double sinh (long double x); double sinh (T x); // additional overloads for integral types
<cmath> ) for the integral types: These overloads effectively cast x to a double before calculations (defined for T being any integral type ).<complex> and <valarray> (see complex sinh and valarray sinh).1
2
3
4
5
6
7
8
9
10
11
12
/* sinh example */
#include <stdio.h> /* printf */
#include <math.h> /* sinh, log */
int main ()
{
double param, result;
param = log(2.0);
result = sinh (param);
printf ("The hyperbolic sine of %f is %f.\n", param, result );
return 0;
}
The hyperbolic sine of 0.693147 is 0.750000.