0% found this document useful (0 votes)
47 views6 pages

Lab Report 4&5 "Polynomial Method &numerical Integration"

This lab report summarizes numerical integration methods including the polynomial method, trapezoidal rule, Simpson's rule, and midpoint rule. The document includes MATLAB code to implement each method and compares the results. It finds that Simpson's rule converges most quickly on the true integral as the number of segments increases, providing a more accurate estimate than other methods for large values of n. The conclusion is that MATLAB is useful for implementing numerical integration rules and this lab helped understand the algorithms.

Uploaded by

Abde Rrahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views6 pages

Lab Report 4&5 "Polynomial Method &numerical Integration"

This lab report summarizes numerical integration methods including the polynomial method, trapezoidal rule, Simpson's rule, and midpoint rule. The document includes MATLAB code to implement each method and compares the results. It finds that Simpson's rule converges most quickly on the true integral as the number of segments increases, providing a more accurate estimate than other methods for large values of n. The conclusion is that MATLAB is useful for implementing numerical integration rules and this lab helped understand the algorithms.

Uploaded by

Abde Rrahim
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

People’s Democratic Republic of Algeria

Ministry of Higher Education and Scientific Research


University M’Hamed BOUGARA – Boumerdes

Institute of Electrical and Electronic Engineering


Power Engineering
Numerical Methods (EE472)

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.

The Polynomial method:


Our program was:

The output was:


2. Trapezoidal integration
 The program
The output
Notice how the error decreases as the number of segments increases. Therefore, increasing the number of
segments decreases the error. In subsequent parts we will see higher-order formulas that are more accurate and that
converge more quickly on the true integral as the segments are increased.

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.

You might also like