Download presentation

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:

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))

Similar presentations

© 2021 SlidePlayer.com Inc.

All rights reserved.

To make this website work, we log user data and share it with processors. To use this website, you must agree to our Privacy Policy, including cookie policy.

Ads by Google