backward_euler


backward_euler, a MATLAB code which solves one or more ordinary differential equations (ODE) using the backward Euler method.

Unless the right hand side of the ODE is linear in the dependent variable, each backward Euler step requires the solution of an implicit nonlinear equation. Such equations can be approximately solved using methods such as fixed point iteration, or an implicit equation solver like fsolve().

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Source Code:

Accurate solution of the stiff ODE requires a very small stepsize, or the use of an implicit method such as the backward Euler method.


Last revised on 15 February 2021.