2019-11-11 23:01:05 +01:00
|
|
|
|
|
|
|
#include "MathFunctions.h"
|
2020-02-01 23:06:01 +01:00
|
|
|
|
2019-11-11 23:01:05 +01:00
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
#ifdef USE_MYMATH
|
|
|
|
# include "mysqrt.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace mathfunctions {
|
|
|
|
double sqrt(double x)
|
|
|
|
{
|
|
|
|
#ifdef USE_MYMATH
|
|
|
|
return detail::mysqrt(x);
|
|
|
|
#else
|
|
|
|
return std::sqrt(x);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|