diff options
Diffstat (limited to 'tests/Complex.cpp')
-rw-r--r-- | tests/Complex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Complex.cpp b/tests/Complex.cpp index a81deeb..01d850b 100644 --- a/tests/Complex.cpp +++ b/tests/Complex.cpp @@ -24,11 +24,11 @@ #include <iostream> #include <iomanip> -// y' = -y (y == C*exp(x)) +// y' = x*y (y == C*exp(x^2/2)) std::complex<double> f(double x, std::complex<double> y) { - return y; + return x*y; } int @@ -53,7 +53,7 @@ main() << "Rejections: " << integrator.rejections() << std::endl; double error = std::abs(expected - actual)/std::abs(expected); - if (error > 6.0e-7 || !std::isfinite(error)) { + if (error > 5.9e-7 || !std::isfinite(error)) { std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; } else { |