MathFunctions.cxx 231 B

12345678910111213141516171819
  1. #include "MathFunctions.h"
  2. #include <cmath>
  3. #ifdef USE_MYMATH
  4. # include "mysqrt.h"
  5. #endif
  6. namespace mathfunctions {
  7. double sqrt(double x)
  8. {
  9. #ifdef USE_MYMATH
  10. return detail::mysqrt(x);
  11. #else
  12. return std::sqrt(x);
  13. #endif
  14. }
  15. }