C sinh function returns the hyperbolic sine of arg
Syntax
C sinh function has the following syntax.
float sinhf(float arg);
double sinh(double arg);
long double sinhl(long double arg);
Header
C sinh functions are from header file math.h
.
Description
C sinh functions return the hyperbolic sine of arg.
Example
The following code calculates the hyperbolic sine of arg.
#include <math.h>
#include <stdio.h>
/*www . j a va 2s.c o m*/
int main(void)
{
double val = -1.0;
do {
printf("Hyperbolic sine of %f is %f.\n", val, sinh(val));
val += 0.1;
} while(val<=1.0);
return 0;
}
The code above generates the following result.