C++ cmath sinh() function
Example
Return the hyperbolic sine of different numbers:
cout << sinh(7);
cout << sinh(56);
cout << sinh(2.45);
Try it Yourself »
Definition and Usage
The sinh()
function returns the hyperbolic sine of a number.
The hyperbolic sine is equivalent to (exp(number) - exp(-number)) / 2
.
The sinh()
function is defined in the <cmath>
header file.
Syntax
One of the following:
sinh(double number);
sinh(float number);
Parameter Values
Parameter | Description |
---|---|
number | Required. Specifies a number. If the number is an integer type then it will be treated as a double . |
Technical Details
Returns: | A float value (if the argument is float) or double value (in any other case) representing the hyperbolic sine of a number. |
---|