In C++, asin() and atan() is a predefined function used for mathematical calculations. math.h is the header file required for various mathematical functions. All the functions available in this library take double as an argument and return double as the result.
asin() function is used to find the arc sine of a number means give a sin value to this function it will return the angle in radian corresponding to that value. In trigonometrics, arc sine is the inverse operation of sine.
Note: The argument passed to this function must be between [-1, 1].
double asin(double k) Parameters: k is the value whose corresponding angle we have to find.
The arcsine of 0.5 is 0.523599 radians and 30 degrees
atan() function is used to find the arc tangent of a number means give a tangent value to this function it will return the angle in radian corresponding to that value. arc tangent is the inverse operation of tangent. This function accepts all real numbers.
double atan(double k) Parameters: k is the value whose corresponding angle we have to find.
The arctangent of 1 is 0.785398 radians and 45 degrees
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- valarray asin() function in C++
- valarray atan() function in C++
- asin() function for complex number in C++
- atan() function for complex number in C++
- C++ Mathematical Functions
- Macros vs Functions
- Searching in a map using std::map functions in C++
- List in C++ | Set 2 (Some Useful Functions)
- Pure Functions
- Inline Functions in C++
- Functions that cannot be overloaded in C++
- Important functions of STL Components in C++
- Methods vs. Functions in C++ with Examples
- __builtin_inf() functions of GCC compiler
- C Library math.h functions
- erf | Error functions using cmath in C++
- abs(), labs(), llabs() functions in C/C++
- Ceil and Floor functions in C++
- Can static functions be virtual in C++?
- How arrays are passed to functions in C/C++
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.