summaryrefslogtreecommitdiffstats
path: root/tests/Heun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Heun.cpp')
-rw-r--r--tests/Heun.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Heun.cpp b/tests/Heun.cpp
index 739a42f..d9e4cbe 100644
--- a/tests/Heun.cpp
+++ b/tests/Heun.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 > 1.4e-4) {
std::cerr << "Error: " << 100.0*error << "%" << std::endl;
return EXIT_FAILURE;