2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Update tests to use correct epsilon calculation.

[SVN r31629]
This commit is contained in:
John Maddock
2005-11-12 10:24:31 +00:00
parent 0545c77c55
commit 3a4b7be9a9

View File

@@ -204,7 +204,7 @@ void check_spots(const T&)
{
typedef std::complex<T> ct;
ct result;
T eps = std::numeric_limits<T>::epsilon();
T eps = std::pow(two, 1-std::numeric_limits<T>::digits); // numeric_limits<>::epsilon way too small to be useful on Darwin.
static const T zero = 0;
static const T mzero = -zero;
static const T one = 1;