Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

sinh, sinhf, sinhl - Hyperbolic sine

&pagelevel(4)&pagelevel

Definition

#include <math.h>

double sinh(double x);
float sinhf(float x); (C11)
long double sinhl(long double x); (C11)

These functions compute the hyperbolic sine of the floating-point number x

Return val.

sinh(x)

for a floating-point value x, if successful.


+/-HUGE_VAL
+/-HUGE_VALF
+/-HUGE_VALL

depending on the function type and the sign of x, if an overflow occurs. In addition errno is set to is set to ERANGE (result too large).

Example

The following program outputs the hyperbolic sine of values in the range -1 to 1 (increment 0.1).

#include <math.h>
#include <stdio.h>
int main(void)
{
   double x;
   for (x = -1.0; x < 1.0; x = x + 0.1)
       printf(" sinh(%.2f) = %.4f \n ", x, sinh(x));
   return 0;
}

See also

cosh, asin, sin