Guardian C Library Calls Reference Manual
sinh
3-168 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
sinh
The sinh function computes the hyperbolic sine of its argument.
expr
is an expression of type double.
Return Value
is the hyperbolic sine of expr. sinh returns HUGE_VAL if a positive overflow
occurs, -HUGE_VAL if a negative overflow occurs, or zero if an underflow occurs.
In all three of these cases, sinh also sets errno to ERANGE (a range error).
Example
This example prints “The hyperbolic sine is 2.301308.”:
#include <mathh>
#include <stdioh>
int main(void)
{
double x, r;
x = 1.5708;
r = sinh(x);
printf("The hyperbolic sine is %f.", r);
}
#include <mathh>
double sinh(double expr);