diff options
Diffstat (limited to 'tests/HE12.cpp')
-rw-r--r-- | tests/HE12.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/HE12.cpp b/tests/HE12.cpp index 44d6943..511a8e0 100644 --- a/tests/HE12.cpp +++ b/tests/HE12.cpp @@ -23,16 +23,17 @@ main() double expected = std::exp(2.0); std::cout << std::setprecision(10) - << "Numerical: " << actual << std::endl - << "Expected: " << expected << std::endl - << "h: " << integrator.h() << std::endl; + << "Numerical: " << actual << std::endl + << "Expected: " << expected << std::endl + << "h: " << integrator.h() << std::endl + << "rejections: " << integrator.rejections() << std::endl; double error = std::fabs(expected - actual)/expected; if (error > 8.7e-7) { - std::cerr << "Error: " << 100.0*error << "%" << std::endl; + std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; } else { - std::cout << "Error: " << 100.0*error << "%" << std::endl; + std::cout << "Error: " << 100.0*error << "%" << std::endl; return EXIT_SUCCESS; } } |