sinh()

The sinh() function returns the hyperbolic sine of an argument given in radians.

Syntax

sinh(angle)

The angle parameter should be expressed in radians. To convert from degrees to radians:

radians = degrees * PI / 180

Example

The following example uses sinh() to return the hyperbolic sine of 0.0 in radians:

#include <iostream>
#include <cmath>
int main()
{
double x = 0.0;
double result;
result = std::sinh(x);
std::cout << "The hyperbolic sine of " << x << " radians is " << result << "\n";
// Output: The hyperbolic sine of 0 radians is 0
}

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your thoughts in this feedback form.

Learn C++ on Codecademy