1 / 5

4. NUMERICAL INTEGRATION:

h. Area of a single trapezoid =. 4. NUMERICAL INTEGRATION:.

halia
Download Presentation

4. NUMERICAL INTEGRATION:

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. h Area of a single trapezoid = 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. Trapezoidal Rule:

  2. Simpson’s Rule: In Simpson’s rule, number of section n must be even! n=2*m

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

More Related