Mercurial > repos > public > sbplib
comparison +time/Rungekutta4proper.m @ 280:e1a05acc1b5d feature/beams
Added some documentation.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 09 Sep 2016 13:11:25 +0200 |
parents | 910a05dcdfdf |
children | c6fcee3fcf1b 8894e9c49e40 |
comparison
equal
deleted
inserted
replaced
279:d27297a9826c | 280:e1a05acc1b5d |
---|---|
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; |