# HW8_ENED1091_Winter_2018.docx - ENED 1091 HW#8 Due Week of...

• 6

This preview shows page 1 - 3 out of 6 pages.

ENED 1091 HW#8 Due Week of April 9that beginning of Recitation Problem 1: Use the data points show below and the trapezoidal rule to estimate the integral of the curve shown below from t = 0 to 3.6. Be sure to clearly show your calculations – don’t just give an answer.-0.500.511.522.533.54020406080100X: 3.6Y: 100.6xYX: 3Y: 27X: 2.4Y: 8.175X: 1.8Y: 2.881X: 1.2Y: 1.245X: 0.6Y: 0.736X: 0Y: 1Data Points from Graph:X00.61.21.82.433.6Y10.7361.2452.8818.17527100.6Integral Estimate (Trapezoid): ______54.5022______________
Problem 2: The curve shown in problem 1 is for the function y = xx. There is no expression for the indefinite integral of this function. However, we can estimate the definite integral using numerical integration as you have done in Problems 1. Write a MATLAB script that will:Begin with 3 data points (x-values) evenly distributed from 0 to 3.6 inclusive (Hint: use the MATLAB command, linspace).
Calculate the corresponding y-values for the function y = x^x. Estimate the integral of y from 0 to 3.6 using the Trapezoid Rule.Double the number of data points and get a new estimate for the integral of y from 0 to 3.6 using the trapezoid rule.
• • • 