<math> and <cmath>
Is there a difference between <math> and <cmath>?
The latter is a C++ header file for accessing the functions in the mathematics library.
The former does not exist.
Assuming the OP meant to compare <math.h> and <cmath>, the thread below talks about the difference between <xxxx.h> and <cxxxx>. Basically, in C++ you should use the latter version and qualify the appropriate symbols with std::.