We will discuss trigonometric and hyperbolic Math functions. All these functions which takes angle as input are in radian. Similarly arc functions gives return values in radian. In practical cases we take angle in degrees thus we used macro to convert degree to radian and radian to degree.
Trigonometric functions
- cos - Compute cosine
double sin(double);
- sin - Compute sine
double cos(double);
- tan - Compute tangent
double tan(double);
- acos - Compute arc cosine
double acos(double);
- asin - Compute arc sine
double asin(double);
- atan - Compute arc tangent
double atan(double);
- atan2 - Compute arc tangent with two parameters
double atan2(double, double);
Hyperbolic functions
- cosh
Compute hyperbolic cosine
double cosh(double);
- sinh
Compute hyperbolic sine
double sinh(double);
- tanh
Compute hyperbolic tangent
double tanh(double);
output
sin(30) = 0.50 cos(60) = 0.50 tan(45) = 1.00 asin(0.50) = 30 acos(0.50) = 60 atan(1.00) = 45 atan2(1.73/3) = 30
About our authors: Team EQA
You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.
Most popular
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Calculate weighted average
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Calculate weighted average