Most likely you #include
d other header files which in turn eventually #include
d cmath
or math.h
. edit To answer your question in the comments: #include <iostream>
could have done it, that depends on your C++ standard library. The standard does not guarantee it.
But, if you simply declare the functions for yourself, then you can use them too. Though declaring functions in the std
namespace for yourself is not standard compliant and cannot be recommended.