asinf(): This function is defined in the file math.h. This function takes an argument.
It takes an argument in the range [-1.0,1.0]. If the argument is outside this range it will return nan. It returns the value in the range [-π/2,π/2].
Parameters: It takes one parameter in the floating-point data type.
1.__X> 1 - It will returns nan.
2. __X<-1 It will return nan.
3. __X =[-1,1] - It will the value of arcsine.
Syntax:
asinf(__X)
For Example:
asinf(0.45) = > It will returns 0.466765.
Approach:
C++
#include <bits/stdc++.h>using namespace std;int main(){float x = 0.45;cout << asinf(x) << "\n";return 0;}
No comments:
Post a Comment