BIRDy/Utils/MathTools/rk1_IntegrationStep.m

9 lines
195 B
Mathematica
Raw Permalink Normal View History

2021-04-29 09:42:38 +00:00
function x_next = rk1_IntegrationStep(ode_fun,x,u,h)
% Authors: Quentin Leboutet, Julien Roux, Alexandre Janot and Gordon Cheng
%
% Euler RK1 integration step.
x_next = x + h*ode_fun(x,u);
end