acoshl() in C++

acoshl(): This is a function in the library math.h. This function required one parameter.

It takes a parameter whose value is in the range [1,). It returns the inverse 

hyperbolic cosine of the given value. If the value is less than 1 then it returns nan.

Parameters:

__X: The value whose inverse hyperbolic cosine value to be fined. The value is 

long double type.

Syntax:

acoshl(__X)

For Example:

1. __X = 12.6

acoshl(__X) = > It returns 3.22527

2. __X = 0.5

acoshl(__X) = > It returns nan.

Approach

C++

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

int main()
{
    long double x = 12.6;
    cout << acoshl(x<< "\n";

    return 0;
}


No comments:

Post a Comment