made BIGDOUBLE closer to max float

bugfix example was not returning error
This commit is contained in:
swaits committed 2005-05-20 22:10:32 +00:00
1 parent fc50c9142a
commit 9e10476993
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ template <unsigned int DIM, unsigned int POP>
const double DE::Engine<DIM,POP>::DEFAULTRANGE= 1000000.0;
template <unsigned int DIM, unsigned int POP>
const double DE::Engine<DIM,POP>::BIGDOUBLE = 9.0e300; // close to max double
const double DE::Engine<DIM,POP>::BIGDOUBLE = 1.79e308; // close to max double
template <unsigned int DIM, unsigned int POP>
inline DE::Engine<DIM,POP>::Engine()
+1
View File
@@ -31,6 +31,7 @@ class PolySearch: public DE::Engine<4>
{
stop = true;
}
return error;
}
};