atanf(): This function is available in the file math.h. This function computes the principal value of the arc tangent of arg
. This function takes one argument (arg). It returns the value in the range [ -π/2,π/2].
Parameters: One parameter is required for this function.
arg: The value whose arc tangent value is to be determined.
Syntax:
atanf(arg)
For Example:
atanf(1.5) = > It returns the value 0.982794
Approach
C++
#include <bits/stdc++.h>using namespace std;int main(){float x = 1.5;cout << atanf(x) << "\n";return 0;}
No comments:
Post a Comment