Task 10
Task 10ΒΆ
deadline: 09/05/2021 23:59 CET
[0.5 points]: Solve the following ordinary differential equation,
\[
\frac{dN(t)}{dt} = \left[ 1 + \cos(t) \right] N(t), \quad N(0) = 1,
\]
using the forward Euler method for \( t \in [0, 5] \) and the step size \( h = 0.2 \). Print the obtained value of solution for \( t = 5 \).
[0.5 points]: Plot the solution obtained by the forward Euler method as well as the analytical solution
\[
N(t) = N(0) \exp \left[t + \sin(t) \right]
\]
in the interval \( t \in [0, 5] \).
# add your code here