diff options
Diffstat (limited to 'src/jtutil/miscfp.cc')
-rw-r--r-- | src/jtutil/miscfp.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jtutil/miscfp.cc b/src/jtutil/miscfp.cc index 3d19276..fb59352 100644 --- a/src/jtutil/miscfp.cc +++ b/src/jtutil/miscfp.cc @@ -8,6 +8,7 @@ // #include <math.h> + #include "stdc.h" #include "util.hh" @@ -50,7 +51,7 @@ namespace jtutil { double hypot3(double x, double y, double z) { -return std::sqrt(x*x + y*y + z*z); +return sqrt(x*x + y*y + z*z); } } // namespace jtutil:: @@ -74,7 +75,7 @@ namespace jtutil double arctan_xy(double x, double y) { // note reversed argument order (y,x) in std::atan2() function -return ((x == 0.0) && (y == 0.0)) ? 0.0 : std::atan2(y,x); +return ((x == 0.0) && (y == 0.0)) ? 0.0 : atan2(y,x); } } // namespace jtutil:: |