ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/utils/NumericConstant.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/utils/NumericConstant.hpp (file contents):
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2627 by tim, Wed Mar 15 21:28:49 2006 UTC

# Line 50 | Line 50 | namespace oopse {
50   #ifndef UTILS_NUMERICCONSTANT_HPP
51   #define UTILS_NUMERICCONSTANT_HPP
52   #include <cmath>
53 + #include <limits>
54   namespace oopse {
55  
56    /**
# Line 58 | Line 59 | namespace oopse {
59     */
60    namespace NumericConstant {
61  
62 <    static const double epsilon = 0.000001;
62 >    static const double epsilon = std::numeric_limits<double>::epsilon();
63      static const double PI = M_PI;
64      static const double TWO_PI = 2.0 * PI;
65    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines