sinh() function

The sinh() function takes a single mandatory argument representing a hyperbolic angle in radian

The sinh() function returns the hyperbolic sine of the argument.

Example 1: In radians

Input:  x = 4.67
Output: 53.3442

Example 2: In degrees

Input:  degrees = 60
Output: 1.24852

Approach 1: In radians

C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
    double x = 4.67;

    cout << sinh(x);

    return 0;
}

Approach 2: In degrees

C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
    double degrees = 60;

    //convert into radians
    double x = degrees * 3.14 / 180;
    cout << sinh(x);

    return 0;
}


No comments:

Post a Comment