summaryrefslogtreecommitdiffstats
path: root/tests/RK4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/RK4.cpp')
-rw-r--r--tests/RK4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/RK4.cpp b/tests/RK4.cpp
index 7165c76..2090a1e 100644
--- a/tests/RK4.cpp
+++ b/tests/RK4.cpp
@@ -15,7 +15,7 @@ int
main()
{
vZ::RK4Integrator integrator(f);
- integrator.y(1.0).x(0.0).h(0.01);
+ integrator.y(1.0).x(0.0).h(0.04);
integrator.integrate(2.0);
@@ -27,7 +27,7 @@ main()
<< "Expected: " << expected << std::endl;
double error = std::fabs(expected - actual)/expected;
- if (error > 1.7e-10) {
+ if (error > 4.2e-8) {
std::cerr << "Error: " << 100.0*error << "%" << std::endl;
return EXIT_FAILURE;
} else {