The Euler method solves ordinary differential equations with initial conditions. Details
![]() |
X is an array of strings of variables. |
![]() |
time start is the start point of the ODE. The default is 0. |
![]() |
time end is the end point of the time interval under investigation. The default is 1.0. |
![]() |
h is the fixed step rate. The default is 0.1. |
![]() |
X0 is the vector of the start condition
![]() |
![]() |
time is the string denoting the time variable. The default variable is t. |
![]() |
F(X,t) is a 1D array of strings representing the right sides of the differential equations. |
![]() |
Times is an array representing the time steps. The Euler method yields equidistant time steps between time start and time end. |
![]() |
X Values is a 2D array of the solution vector
![]() ![]() |
![]() |
ticks is the time effort for the whole calculation of the function values in milliseconds. |
![]() |
errors are produced by using the wrong inputs X, X0, and F(X,t). |
The general form of an ordinary differential equation (ODE) is
with
The functions , the numbers, and the start point
are given. With the conventions
we have
You have to determine functions X fulfilling the above equations.
The Euler method is the most basic and often useful strategy to solve ODEs. Beginning with and a fixed step rate h, usually relatively small, the new values
are calculated. This process stops, if time start + nh time end, where time end is the right endpoint of the time interval under investigation.
The following diagram shows the solution of the following ordinary differential equation.
The above equation and initial condition are entered on the front panel as: