Lab Report 4&5 "Polynomial Method &numerical Integration"
Lab Report 4&5 "Polynomial Method &numerical Integration"
Done by:
MEFLAH Abderrahim Aimane.
Supervisor :
Mr.TERCHI
2019-2020
Introduction
In numerical integration, the area under the curve f(x), from x=a to x=b is the sum of the areas of smaller
segments. Geometrically, the trapezoidal rule is equivalent to approximating the area of the trapezoid under the
straight line connecting f(a) and f(b). Another way to obtain a more accurate estimate of an integral is to use
higher-order polynomials to connect the points, parabola is used. The formulas that result from taking the integrals
under these polynomials are called Simpson’s rules.
To get a better approximation, we could use y-value of the midpoint of each interval as the height.
3. Simpson integration
The program
The program
As we can see, the result converges more quickly on the true integral as the segments are increased.
4. Mid Point integration
The program
The program
As we can see, the result converges more quickly on the true integral as the segments are increased.
Conclusion
Simpson’s rule produces a more accurate estimate for large n.
MATLAB is very useful to implement rules of numerical integration, through this lab we have understood
the algorithm to implement trapezoid, Simpson and mid-point integration.