Mercurial > repos > public > sbplib
comparison +time/Rungekutta4proper.m @ 425:e56dbd9e4196 feature/grids
Merge feature/beams
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 07 Feb 2017 16:09:02 +0100 |
parents | e1a05acc1b5d |
children | c6fcee3fcf1b 8894e9c49e40 |
comparison
equal
deleted
inserted
replaced
423:a2cb0d4f4a02 | 425:e56dbd9e4196 |
---|---|
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; |