Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

10.5 Instability of forward Euler scheme

10.5.1Adaptive stepping

We will use a variable time step

yn=yn−1+hn−1f(tn−1,yn−1)y_n = y_{n-1} + h_{n-1} f(t_{n-1}, y_{n-1})

where

hn−1=1∣fy(tn−1,yn−1)∣=110tn−1∣yn−1∣h_{n-1} = \frac{1}{|f_y(t_{n-1},y_{n-1})|} = \frac{1}{10 t_{n-1} |y_{n-1}|}
Number of iterations= 241
<Figure size 640x480 with 1 Axes>
<Figure size 640x480 with 1 Axes>