<< Return to class page

Math 151 Lab 05 - 02/05/2018:

DUE: Monday, February, 2018 (by 4:00pm before class starts)

INSTRUCTIONS: Save this Matlab script with the filename LastName_Lab05.m (example: Lewis_Lab05.m). Complete each question (either in words or with Matlab code). When you are ready to have your assignment graded, choose the PUBLISH command from the file menu, and submit the resulting file to CANVAS.

Contents

#1

WRITE CODE BELOW:

Write code for 1) (a) (b) (c) (d) listed in the file Lab05.pdf

WRITE A COMMENT BELOW:

a) Did increasing the number of rectangles make the solution generally more accurate?

b) Were the left-endpoint approximations an over or under estimate? What about the right-endpoint approximations? Is there some characteristic of the curve which suggests why the approximations are over or under estimates.

------------------------------------------------------------------------

#2

WRITE CODE BELOW:

Write code for 2) (a) (b) listed in the file Lab05.pdf.

WRITE A COMMENT BELOW:

Did increasing the number of rectangles to 50 significantly reduce the amount of error?

------------------------------------------------------------------------

#3

WRITE CODE BELOW:

Write code for 3) (a) (b) listed in the file Lab05.pdf

WRITE A COMMENT BELOW:

Which method was more accurate? Trapezoidal rule or Simpson's rule?

------------------------------------------------------------------------