acoshf(): This is a build-in function in the library math.h.
This function required one parameter. It gets 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.
Floating-point value.
Syntax:
acoshf(__X)
For Example:
1. __X = 10.0
acoshf(__X) => It returns 2.99322
2. __X = 0.5
acoshf(__X) = > It returns nan.
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){float x = 10;cout << acoshf(x) << "\n";return 0;}
No comments:
Post a Comment