diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-19 01:12:57 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-19 01:12:57 -0400 |
commit | c01880ba9cfdeb2677eee9b92ee10507070eb86e (patch) | |
tree | b5f8ad7208414d17781c3e4771c1b58c44def78b /tests/DP45.cpp | |
parent | 2829763fc5f9d222a966402bf073083dbc1da51c (diff) | |
download | vz-c01880ba9cfdeb2677eee9b92ee10507070eb86e.tar.xz |
Support std::complex<T>.
Diffstat (limited to 'tests/DP45.cpp')
-rw-r--r-- | tests/DP45.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/DP45.cpp b/tests/DP45.cpp index 5d6cb43..12c3202 100644 --- a/tests/DP45.cpp +++ b/tests/DP45.cpp @@ -51,7 +51,7 @@ main() << "Iterations: " << integrator.iterations() << std::endl << "Rejections: " << integrator.rejections() << std::endl; - double error = std::fabs(expected - actual)/expected; + double error = std::abs(expected - actual)/expected; if (error > 6.0e-7) { std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; |