From c01880ba9cfdeb2677eee9b92ee10507070eb86e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 19 Oct 2010 01:12:57 -0400 Subject: Support std::complex. --- tests/EquationSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/EquationSystem.cpp') diff --git a/tests/EquationSystem.cpp b/tests/EquationSystem.cpp index b1fed00..0a929aa 100644 --- a/tests/EquationSystem.cpp +++ b/tests/EquationSystem.cpp @@ -59,7 +59,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; -- cgit v1.2.3