comparison +time/Rungekutta4proper.m @ 886:8894e9c49e40 feature/timesteppers

Merge with default for latest changes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 15 Nov 2018 16:36:21 -0800
parents b5e5b195da1e e1a05acc1b5d
children 50d5a3843099
comparison
equal deleted inserted replaced
816:b5e5b195da1e 886:8894e9c49e40
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;