asinh() function

The asinh() function takes a single argument and returns the arc hyperbolic sine of that value in radians.

The asinh() function takes a single mandatory argument whose inverse hyperbolic sine is to be computed.

It can be any value i.e. negative, positive, or zero.

Example 1: In radians

Input:  x = 10.45
Output: 3.04203

Example 2: In degrees

Input:  x = 10.45
Output: 174.384

Approach 1: In radians

C++

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

int main()
{
    double x = 10.45;

    cout << asinh(x);

    return 0;
}

Approach 2: In degrees

C++

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

int main()
{
    double x = 10.45;

    double radian = asinh(x);
    double degrees = radian * 180 / 3.14;

    cout << degrees << "\n";

    return 0;
}


No comments:

Post a Comment