Presentation is loading. Please wait.

Presentation is loading. Please wait.

Area of a single trapezoid = h

Similar presentations


Presentation on theme: "Area of a single trapezoid = h"— Presentation transcript:

1 Area of a single trapezoid = h
4. NUMERICAL INTEGRATION: There are various numerical methods to calculate the definite integrals. The integral gives the area under the curve defined by the function f(x). We use the function values and increment value between the successive points on the x axis in order to calculate the integral. Area of a single trapezoid = h Trapezoidal Rule:

2

3

4 In Simpson’s rule, number of section n must be even!

5 Trapezoidal Rule gives: 0.743
k x Exp(-x^2) 1 0.25 0.939 2 0.50 0.779 3 0.75 0.570 4 0.368 Example: Numerical Integration using Matlab: Trapezoidal Rule gives: 0.743 clc; clear syms x f=exp(-x^2) y=int(f,0,1) vpa(y,5) Simpson’s Rule gives: 0.747 >> vpa(int('exp(-x^2)',0,1))


Download ppt "Area of a single trapezoid = h"

Similar presentations


Ads by Google