In this C++ tutorial, we list out the functions in cmath library, and provide a well detailed tutorial for each of the function.
C++ cmath Functions
Number-theoretic and Representation Functions
- C++ Math – abs()
- C++ Math – cbrt()
- C++ Math – ceil()
- C++ Math – copysign()
- C++ Math – fabs()
- C++ Math – fdim()
- C++ Math – floor()
- C++ Math – fma()
- C++ Math – fmax()
- C++ Math – fmin()
- C++ Math – fmod()
- C++ Math – frexp()
- C++ Math – ilogb()
- C++ Math – ldexp()
- C++ Math – llrint()
- C++ Math – llround()
- C++ Math – lrint()
- C++ Math – lround()
- C++ Math – modf()
- C++ Math – nan()
- C++ Math – nearbyint()
- C++ Math – nextafter()
- C++ Math – nexttoward()
- C++ Math – remainder()
- C++ Math – remquo()
- C++ Math – rint()
- C++ Math – round()
- C++ Math – scalbln()
- C++ Math – scalbn()
- C++ Math – trunc()
Logarithmic Functions
Power Functions
Trigonometric Functions
- C++ Math – acos()
- C++ Math – asin()
- C++ Math – atan()
- C++ Math – atan2()
- C++ Math – cos()
- C++ Math – sin()
- C++ Math – tan()
- C++ Math – hypot()
Hyperbolic Functions
- C++ Math – acosh()
- C++ Math – asinh()
- C++ Math – atanh()
- C++ Math – cosh()
- C++ Math – sinh()
- C++ Math – tanh()
Conclusion
In this C++ Tutorial, we learned about the functions in C++ cmath library.