Matlab Numerical Differentiation and Integration
Compute these two integrals using trapz and quad. How many points are required to get an accuracy of 1e-6 with trapz? How many function evaluations are required to get an accuracy of 1e-8 with quad? Exact answers are: 5/2 and 24*cos(6) + 68*sin(6)...