In this post today I am going to explain trigonometric math functions in C++.
C++ has several fundamental arithmetic functions, and the header file <math.h> is required to use them.
Trignometric Functions:
Method | Description |
cos(x) | It computes the cosine of x. |
sin(x) | It computes the sine of x. |
tan(x) | It computes the tangent of x. |
acos(x) | It finds the inverse cosine of x. |
asin(x) | It finds the inverse sine of x. |
atan(x) | It finds the inverse tangent of x. |
atan2(x,y) | It finds the inverse tangent of a coordinate x and y. |