finalsolution

finalsolution - Numerical Analysis in Engineering ME 140A,...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: Numerical Analysis in Engineering ME 140A, Fall 2007 Final Solution December 15, 2007 Problem 1 Use the trapezoidal rule to integrate I = Z 2 Z 3 xy dx dy (1) Use 3 intervals of equal size in the x-direction, and 2 intervals of equal size in the y-direction. Compare your result with the analytical result. Discuss the comparison. Solution: I = Z 2 y Z 3 x dx dy (2) First, use composite trapezoidal rule in x-direction: I = Z 2 y 0 + 1 × 1 + 1 × 2 + 1 2 × 3 dy = 9 2 Z 2 y dy (3) Now, use composite trapezoidal rule in y-direction: I = 9 2 0 + 1 × 1 + 1 2 × 2 = 9 (4) Next, we can find the integral analytically as below: I = Z 2 y Z 3 x dx dy (5) = Z 2 y x 2 2 | 3 dy (6) = 9 2 y 2 2 | 2 (7) = 9 (8) Comparing the results, we get exact agreement between the numerical and ana- lytical result since the given function is linear both in terms of x and y. There- fore, the trapezoidal rule can reproduce the functions correctly....
View Full Document

This note was uploaded on 01/04/2011 for the course ME 140A taught by Professor Meiburg during the Spring '08 term at UCSB.

Page1 / 3

finalsolution - Numerical Analysis in Engineering ME 140A,...

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