Skip to content
Snippets Groups Projects
Commit 0ab2f471 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

More precision

parent b305575d
No related branches found
No related tags found
No related merge requests found
...@@ -208,7 +208,7 @@ void testTrivialFunction() { ...@@ -208,7 +208,7 @@ void testTrivialFunction() {
start *= 17; start *= 17;
SampleFunctional::SmallVector correction = J.minimise(start, 20); SampleFunctional::SmallVector correction = J.minimise(start, 20);
assert(J(start + correction) <= J(start)); 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; std::cout << J(start + correction) << std::endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment