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/RK4.hpp | |
parent | d5639168232d1c111d6924b10c6abd74204abec1 (diff) | |
download | vz-f1983adb487bb531c1c68226596b26eebf99876a.tar.xz |
Add Heun-Euler adaptive method.
Diffstat (limited to 'src/vZ/RK4.hpp')
-rw-r--r-- | src/vZ/RK4.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vZ/RK4.hpp b/src/vZ/RK4.hpp index fa50461..39fa306 100644 --- a/src/vZ/RK4.hpp +++ b/src/vZ/RK4.hpp @@ -29,12 +29,12 @@ namespace vZ // Four function evaluations per step // Its tableau is: // - // 0 | - // 1/2|1/2 - // 1/2|0 1/2 - // 1 |0 0 1 - // ---+--------------- - // |1/6 1/3 1/3 1/6 + // 0 | + // 1/2 | 1/2 + // 1/2 | 0 1/2 + // 1 | 0 0 1 + // ----+---------------- + // | 1/6 1/3 1/3 1/6 // // k1 = dt*f(y[n]) // k2 = dt*f(y[n] + (dt/2)*k1) |