From 0ab2f4718d4f1dd5213b861754539247afb75d88 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Tue, 6 Sep 2011 18:10:48 +0200 Subject: [PATCH] More precision --- src/bisection-example-flexible.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bisection-example-flexible.cc b/src/bisection-example-flexible.cc index 1ca0347f..06d612a9 100644 --- a/src/bisection-example-flexible.cc +++ b/src/bisection-example-flexible.cc @@ -208,7 +208,7 @@ void testTrivialFunction() { start *= 17; SampleFunctional::SmallVector correction = J.minimise(start, 20); assert(J(start + correction) <= J(start)); - assert(std::abs(J(start + correction) + 0.833333) < 1e-6); + assert(std::abs(J(start + correction) + 0.83333333) < 1e-8); std::cout << J(start + correction) << std::endl; } -- GitLab