In: Statistics and Probability
Plot the Trapezoid Method approximate solution on [0,1] for the differential equation y = 1 + y2 and initial condition (a) y0 = 0 (b) y0 = 1, along with the exact solution (see Exercise 6.1.7). Use step sizes h = 0.1 and 0.05 (Code In Matlab)