Question: Exercise 6 Question Let's plot the exact solution y(t)=12+e-4:2+ke-2: (with your value of k) against the Euler approximation, to check that your code works. Run

 Exercise 6 Question Let's plot the exact solution y(t)=12+e-4:2+ke-2: (with your

Exercise 6 Question Let's plot the exact solution y(t)=12+e-4:2+ke-2: (with your value of k) against the Euler approximation, to check that your code works. Run your function my_euler with t_0=0, y_0=1, dt=0.1 and t_f=2. Plot the exact solution on the same set of axes. Save your plot as a PNG figure and upload your PNG file. Your plot should resemble:From the plot we can see that the numerical solution starts to deviate early on but tends to the correct answer. This is because the ODE has a stable equilibrium solution at }=12. Tutor comments

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!