MATLAB Code to Compute Approximations to an Integral and to Construct Estimations Table

$29.00$19.00583 reads

Question

Use the code to compute approximations to the integral 

Construct a table (or a matrix) where the columns correspond to the four estimations and the rows correspond to the number n of subintervals. Use n = 10, 20, 40, 100, 500 and 1000. Comment on the errors? Are they what you expected? Justify.

Summary

This question belongs to MATLAB software and discusses about to write a MATLAB code that computes an approximation to an integral by Riemann sums for midpoint rule, trapezoid rule, etc,.

Answer is in MATLAB format

 

Add to Cart