Mercurial > repos > public > sbplib
comparison +time/Rungekutta4SecondOrder.m @ 1114:f2988a63c3aa feature/timesteppers
Add tests for time.Rungekutta4 and time.Rungekutta4SecondOrder
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 10 Apr 2019 23:10:13 +0200 |
parents | a99f00896b8e |
children |
comparison
equal
deleted
inserted
replaced
1113:47e86b5270ad | 1114:f2988a63c3aa |
---|---|
20 obj.v = v0; | 20 obj.v = v0; |
21 obj.v_t = v0t; | 21 obj.v_t = v0t; |
22 end | 22 end |
23 | 23 |
24 function [v,t] = getV(obj) | 24 function [v,t] = getV(obj) |
25 v = obj.v | 25 v = obj.v; |
26 t = obj.t; | 26 t = obj.t; |
27 end | 27 end |
28 | 28 |
29 function [vt,t] = getVt(obj) | 29 function [vt,t] = getVt(obj) |
30 vt = obj.v_t; | 30 vt = obj.v_t; |