diff options
Diffstat (limited to 'tests/Euler.cpp')
-rw-r--r-- | tests/Euler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Euler.cpp b/tests/Euler.cpp index d5de734..fa2d97c 100644 --- a/tests/Euler.cpp +++ b/tests/Euler.cpp @@ -48,7 +48,7 @@ main() << "Expected: " << expected << std::endl << "Iterations: " << integrator.iterations() << std::endl; - double error = std::fabs(expected - actual)/expected; + double error = std::abs(expected - actual)/expected; if (error > 0.01) { std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; |