summaryrefslogtreecommitdiffstats
path: root/tests/Midpoint.cpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-19 01:12:57 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-19 01:12:57 -0400
commitc01880ba9cfdeb2677eee9b92ee10507070eb86e (patch)
treeb5f8ad7208414d17781c3e4771c1b58c44def78b /tests/Midpoint.cpp
parent2829763fc5f9d222a966402bf073083dbc1da51c (diff)
downloadvz-c01880ba9cfdeb2677eee9b92ee10507070eb86e.tar.xz
Support std::complex<T>.
Diffstat (limited to 'tests/Midpoint.cpp')
-rw-r--r--tests/Midpoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/Midpoint.cpp b/tests/Midpoint.cpp
index 385adc4..f667ca5 100644
--- a/tests/Midpoint.cpp
+++ b/tests/Midpoint.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;