diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-06 21:50:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-06 21:50:48 -0400 |
commit | f1983adb487bb531c1c68226596b26eebf99876a (patch) | |
tree | c0700c79531e598b827d13a46eff18a3a6153967 /src/vZ/Midpoint.hpp | |
parent | d5639168232d1c111d6924b10c6abd74204abec1 (diff) | |
download | vz-f1983adb487bb531c1c68226596b26eebf99876a.tar.xz |
Add Heun-Euler adaptive method.
Diffstat (limited to 'src/vZ/Midpoint.hpp')
-rw-r--r-- | src/vZ/Midpoint.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vZ/Midpoint.hpp b/src/vZ/Midpoint.hpp index 2329457..a4bb906 100644 --- a/src/vZ/Midpoint.hpp +++ b/src/vZ/Midpoint.hpp @@ -29,10 +29,10 @@ namespace vZ // Two function evaluations per step // Its tableau is: // - // 0 | - // 1/2|1/2 - // ---+----- - // |0 1 + // 0 | + // 1/2 | 1/2 + // ----+------ + // | 0 1 // // k1 = dt*f(y[n]) // k2 = dt*f(y[n] + (dt/2)*k1) |