atanhf() in C++

atanhf(): This function is available in the file math.h. This function computes the inverse hyperbolic tangent of argument (arg). It takes one parameter. 

Note: It takes an argument in the range [-1,1].

If the argument is not in the range [-1,1] it will return nan.

Parameters: One parameter is required for this function.

arg: The value whose inverse hyperbolic tangent value is to be determined.

Syntax:

atanhf(arg)

For Example:

atanhf(0.5) = > It returns the value 0.549306

Approach

C++

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

int main()
{
    float x = 0.5;
    cout << atanhf(x<< "\n";

    return 0;
}


No comments:

Post a Comment