What is the namespace for math functions? Global or std?
std
Consider cos function. It has 3 overloads. But there is also legacy cos from math.
cos
They are in the std namespace. But, for backwards compatibility reasons the cmath header also shows them in the global namespace with a using std::cos;.
cmath
using std::cos;