Mercurial > repos > public > sbplib
comparison +time/Rungekutta4proper.m @ 820:501750fbbfdb
Merge with feature/grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Sep 2018 14:40:58 +0200 |
parents | e1a05acc1b5d |
children | c6fcee3fcf1b 8894e9c49e40 |
comparison
equal
deleted
inserted
replaced
819:fdf0ef9150f4 | 820:501750fbbfdb |
---|---|
8 n | 8 n |
9 end | 9 end |
10 | 10 |
11 | 11 |
12 methods | 12 methods |
13 % Timesteps v_t = F(v,t), using RK4 fromt t = t0 with timestep k and initial conditions v = v0 | |
13 function obj = Rungekutta4proper(F, k, t0, v0) | 14 function obj = Rungekutta4proper(F, k, t0, v0) |
14 obj.F = F; | 15 obj.F = F; |
15 obj.k = k; | 16 obj.k = k; |
16 obj.t = t0; | 17 obj.t = t0; |
17 obj.v = v0; | 18 obj.v = v0; |