atanhl() in C++

atanhl(): This function is available in the file math.h. It returns the value of type long double. This function takes one argument as a parameter. It computes the inverse hyperbolic tangent of argument (arg). It takes an argument in the range [-1,1].

Parameters: One parameter is required for this function.

arg: The value whose inverse hyperbolic tangent value is to be determined. The value of the argument is in floating-point or integer value.

Syntax:

atanhl(arg)

For Example:

atanhl(0.5) = > It returns the value 0.549306

Approach

C++

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

int main()
{
    long double x = 0.5;
    cout << atanhl(x<< "\n";

    return 0;
}


No comments:

Post a Comment