ps10 - UNIVERSITY OF CALIFORNIA, DAVIS Department of...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering ENG 6, Engineering Problem Solving Problem Set #10 Not to be turned in (but you are responsible for knowing the material) Problem 10.1 Consider the following definite integral: 5 2 1 dx x (a) Calculate the result using the trapezoidal method with three, six, twelve, twenty-four, and forty-eight subintervals (i.e., you will have five results). (b) Calculate the result using Simpson’s method. (c) Calculate the result using either the Lobatto algorithm or the Newton-Cotes 8-panel method (depending on whether you have version 6 or above of Matlab, or an older version). (d) Compare the above answers with the closed-form (actual) result. (The integral of 1/ x is ln( x ).) (e) Display each result on its own single line by using the disp command in combination with the num2str function. For example, the first displayed result would look like: Result for trapezoidal method with three subintervals is: 0.9333
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/10/2009 for the course ENG ENG6 taught by Professor Lagerstrom during the Winter '09 term at UC Davis.

Page1 / 2

ps10 - UNIVERSITY OF CALIFORNIA, DAVIS Department of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online