- Let's see the application of this method on an example. Given differential equation,
- The analytical solution of this equation is given as
. Initial condition:
Table 5.1:
Solution of the differential equation in the interval [0, 1] by Euler method.
|
(Example py-file:
myeuler.py)
As can be seen from the table, the margin of error is large in the Euler method.
Figure 5.1:
Solution of the differential equation in the interval [0, 1] by Euler method.
|