Question: Enter the function defining the ODE as anonymous. Use euler.m with N = 6 to determine the approximation to the solution. Plot the approximated points
Enter the function defining the ODE as anonymous. Use euler.m with N = 6 to determine the approximation to the solution. Plot the approximated points in red (use 'ro-','linewidth',2 as line-style in your plot), together with the exact solution and the direction field. You should get Figure 2. The legend is not required, but to produce it, you can use legend('Slope Field','Exact Sltn','Approx. Sltn (N=6)','location','northwest'); Based on the slope field and the geometrical meaning of Euler's method explain why the approximations are so inaccurate for this particular value of the stepsize.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
