- 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.
![\begin{table}\begin{center}
\includegraphics[scale=0.36]{images/6-1}
\end{center}
\end{table}](img245.svg) |
(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.
|