Task 10

Task 10

deadline: 09/05/2021 23:59 CET

[0.5 points]: Solve the following ordinary differential equation,

dN(t)dt=[1+cos(t)]N(t),N(0)=1,

using the forward Euler method for t[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[t+sin(t)]

in the interval t[0,5].

# add your code here