SlideShare una empresa de Scribd logo
1 de 21
Trapezoidal 
Method
Acknowledgement 
Md. Jashim Uddin 
Assistant Professor 
Dept. Of Natural Sciences 
Dept. Of Computer Science and 
Engineering 
Daffodil International University
Content 
 What is Trapezoidal Method 
 General Formula of Integration 
 How it works 
 History of Trapezoidal Method 
 Advantages 
 Application of Trapezoidal Rule 
 Example 
 Problem & Algorithm 
 C code for Trapezoidal Rule 
 Live Preview 
 Conclusion 
 References
Team : Root Finder 
Group Member : 
• Syed Ahmed Zaki ID:131-15-2169 
• Fatema Khatun ID:131-15-2372 
• Sumi Basak ID:131-15-2364 
• Priangka Kirtania ID:131-15-2385 
• Afruza Zinnurain ID:131-15-2345
What is Trapezoidal Method ? 
In numerical analysis, the trapezoidal rule or method is a 
technique for approximating the definite integral. 
푥푛 
푥0 
f(x) dx 
It also known as Trapezium rule. 
1
General Formula of Integration 
In general Integration formula when n=1 its 
Trapezoidal rule. 
I=h[n푦0+ 
푛2 
2 
Δ푦0+ 
2푛3−3푛2 
12 
Δ2푦0+ 
푛4−4푛3+4푛2 
24 
Δ3푦0 + ⋯ ] 
After putting n=1, 
Trapezoidal Rule = 
ℎ 
2 
[푦0 + 푦푛 + 2(푦1 + 푦2 + 푦3 + ⋯ . 푦푛−1)] 
2
How it works ? 
Trapezoid is an one kind of rectangle which has 4 sides and minimum two 
sides are parallel 
Area A= 
푏1+푏2 
2 
ℎ 
3
The trapezoidal rule works 
by approximating the region 
under the graph of the 
function as a trapezoid and 
calculating its area in limit. 
It follows that, 
푏 
f(x) dx ≈ 
푎 
(b−a) 
2 
[f(a) +f(b)] 
4
The trapezoidal rule 
approximation improves 
With More strips , from 
This figure we can clearly 
See it 
5
History Of Trapezoidal Method 
• Trapezoidal Rule,” by Nick Trefethen and 
André Weideman. It deals with a fundamental and 
classical issue in numerical analysis—approximating 
an integral. 
• By focusing on up-to-date covergence of recent 
results 
Trefethen 
6
Advantages 
There are many alternatives to the trapezoidal rule, 
but this method deserves attention because of 
• Its ease of use 
• Powerful convergence properties 
• Straightforward analysis 
7
Application of Trapezoidal Rule 
• The trapezoidal rule is one of the family members of 
numerical-integration formula. 
• The trapezoidal rule has faster convergence. 
• Moreover, the trapezoidal rule tends to become 
extremely accurate than periodic functions 
8
Example: 
푥1 푥2 푥3 
=2 =3 =4 
=1 =5 
5 
1 + 푥2 푑푥 
1 
h = 
5−1 
4 
=1 
Trapezoidal Rule = 
1 
2 
[ 푓(1) + 푓(5) + 2(푓(2) + 푓(3) + 푓(4)] 
= 
1 
2 
[ (1 + 12) + (1 + 52) + 2((1 + 22) + (1 + 32) + (1 + 42)] 
= 
1 
2 
× 92 
= 46 9
Problem & Algorithm 
Problem: Here we have to find integration for the (1+푥2)dx 
with lower limit =1 to upper limit = 5 
Algorithm: 
Step 1: input a,b,number of interval n 
Step 2: h=(b-a)/n 
Step 3: sum=f(a)+f(b) 
Step 4: If n=1,2,3,……i 
Then , sum=sum+2*y(a+i*h) 
Step 5: Display output=sum *h/2 
10
C Code for Trapezoidal Method 
#include<stdio.h> 
float y(float x) 
{ 
return (1+x*x); 
} 
int main() 
{ 
float a,b,h,sum; 
int i,n; 
printf("Enter a=x0(lower limit), b=xn(upper limit), number of 
subintervals: "); 
11
scanf("%f %f %d",&a,&b,&n); 
h=(b-a)/n; 
sum=y(a)+y(b); 
for(i=1;i<n;i++) 
{ 
sum=sum+2*y(a+i*h); 
} 
printf("n Value of integral is %f n",(h/2)*sum); 
return 0; 
} 
12
Live Preview 
Live Preview of Trapezoidal Method 
5 
1 + 푥2 푑푥 
1 
Lower limit =1 
Upper limit =5 
Interval h=4 
13
Conclusion 
Trapezoidal Method can be applied accurately for 
non periodic function, also in terms of periodic 
integrals. 
when periodic functions are integrated over their 
periods, trapezoidal looks for extremely accurate. 
14 
Periodic Integral Function
References 
 http://en.wikipedia.org/wiki/Trapezoidal_rule 
 http://blogs.siam.org/the-mathematics-and-history- 
of-the-trapezoidal-rule/ 
 And various relevant websites 
15
Thank You

Más contenido relacionado

La actualidad más candente

Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical IntegrationTausif Shahanshah
 
Numerical integration
Numerical integrationNumerical integration
Numerical integrationMohammed_AQ
 
Numerical solution of ordinary differential equation
Numerical solution of ordinary differential equationNumerical solution of ordinary differential equation
Numerical solution of ordinary differential equationDixi Patel
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodBijay Mishra
 
Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Osama Zahid
 
Integration and its basic rules and function.
Integration and its basic rules and function.Integration and its basic rules and function.
Integration and its basic rules and function.Kartikey Rohila
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSGOWTHAMGOWSIK98
 
Group theory notes
Group theory notesGroup theory notes
Group theory notesmkumaresan
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rulezahid6
 
Group homomorphism
Group homomorphismGroup homomorphism
Group homomorphismNaliniSPatil
 

La actualidad más candente (20)

Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Numerical solution of ordinary differential equation
Numerical solution of ordinary differential equationNumerical solution of ordinary differential equation
Numerical solution of ordinary differential equation
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)Math lecture 10 (Introduction to Integration)
Math lecture 10 (Introduction to Integration)
 
Integration and its basic rules and function.
Integration and its basic rules and function.Integration and its basic rules and function.
Integration and its basic rules and function.
 
Secant method
Secant methodSecant method
Secant method
 
Interpolation
InterpolationInterpolation
Interpolation
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Numerical method
Numerical methodNumerical method
Numerical method
 
weddle's rule
weddle's ruleweddle's rule
weddle's rule
 
Romberg’s method
Romberg’s methodRomberg’s method
Romberg’s method
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
 
Group theory notes
Group theory notesGroup theory notes
Group theory notes
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rule
 
Group homomorphism
Group homomorphismGroup homomorphism
Group homomorphism
 

Similar a Trapezoidal Method Explained

An application of the hyperfunction theory to numerical integration
An application of the hyperfunction theory to numerical integrationAn application of the hyperfunction theory to numerical integration
An application of the hyperfunction theory to numerical integrationHidenoriOgata
 
UNIT-II.pptx
UNIT-II.pptxUNIT-II.pptx
UNIT-II.pptxJyoReddy9
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptxsaadhaq6
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy methodhodcsencet
 
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Michael Lie
 
Gradient_Descent_Unconstrained.pdf
Gradient_Descent_Unconstrained.pdfGradient_Descent_Unconstrained.pdf
Gradient_Descent_Unconstrained.pdfMTrang34
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfDeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfSean Meyn
 
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...BRNSS Publication Hub
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structuresKàŕtheek Jåvvàjí
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptxKokilaK25
 
Overviewing the techniques of Numerical Integration.pdf
Overviewing the techniques of Numerical Integration.pdfOverviewing the techniques of Numerical Integration.pdf
Overviewing the techniques of Numerical Integration.pdfArijitDhali
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationAinul Islam
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxSayedulHassan1
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with cYagya Dev Bhardwaj
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxSayedulHassan1
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfJifarRaya
 

Similar a Trapezoidal Method Explained (20)

An application of the hyperfunction theory to numerical integration
An application of the hyperfunction theory to numerical integrationAn application of the hyperfunction theory to numerical integration
An application of the hyperfunction theory to numerical integration
 
UNIT-II.pptx
UNIT-II.pptxUNIT-II.pptx
UNIT-II.pptx
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
Time-Series Analysis on Multiperiodic Conditional Correlation by Sparse Covar...
 
Gradient_Descent_Unconstrained.pdf
Gradient_Descent_Unconstrained.pdfGradient_Descent_Unconstrained.pdf
Gradient_Descent_Unconstrained.pdf
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfDeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
 
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptx
 
勾配法
勾配法勾配法
勾配法
 
Overviewing the techniques of Numerical Integration.pdf
Overviewing the techniques of Numerical Integration.pdfOverviewing the techniques of Numerical Integration.pdf
Overviewing the techniques of Numerical Integration.pdf
 
Mit6 094 iap10_lec03
Mit6 094 iap10_lec03Mit6 094 iap10_lec03
Mit6 094 iap10_lec03
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptx
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptx
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
 
05_AJMS_16_18_RA.pdf
05_AJMS_16_18_RA.pdf05_AJMS_16_18_RA.pdf
05_AJMS_16_18_RA.pdf
 

Más de Syed Ahmed Zaki

Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C CodeSyed Ahmed Zaki
 
Presentation on Transmission Media
Presentation on Transmission MediaPresentation on Transmission Media
Presentation on Transmission MediaSyed Ahmed Zaki
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessorSyed Ahmed Zaki
 
Importance of Electric Device Knowledge in Computer Science Education
Importance of Electric Device Knowledge in Computer Science EducationImportance of Electric Device Knowledge in Computer Science Education
Importance of Electric Device Knowledge in Computer Science EducationSyed Ahmed Zaki
 
Presentation on bernoulli
Presentation on bernoulliPresentation on bernoulli
Presentation on bernoulliSyed Ahmed Zaki
 
Presentation on inverse matrix
Presentation on inverse matrixPresentation on inverse matrix
Presentation on inverse matrixSyed Ahmed Zaki
 
Project Report - Diabetic Profile Management System : Structured Programming ...
Project Report - Diabetic Profile Management System : Structured Programming ...Project Report - Diabetic Profile Management System : Structured Programming ...
Project Report - Diabetic Profile Management System : Structured Programming ...Syed Ahmed Zaki
 
History and Real Life Applications of Fourier Analaysis
History and Real Life Applications of Fourier AnalaysisHistory and Real Life Applications of Fourier Analaysis
History and Real Life Applications of Fourier AnalaysisSyed Ahmed Zaki
 

Más de Syed Ahmed Zaki (11)

Networking Lab Report
Networking Lab ReportNetworking Lab Report
Networking Lab Report
 
Lab report assembly
Lab report assemblyLab report assembly
Lab report assembly
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C Code
 
Presentation on Transmission Media
Presentation on Transmission MediaPresentation on Transmission Media
Presentation on Transmission Media
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
 
Algorithm Presentation
Algorithm PresentationAlgorithm Presentation
Algorithm Presentation
 
Importance of Electric Device Knowledge in Computer Science Education
Importance of Electric Device Knowledge in Computer Science EducationImportance of Electric Device Knowledge in Computer Science Education
Importance of Electric Device Knowledge in Computer Science Education
 
Presentation on bernoulli
Presentation on bernoulliPresentation on bernoulli
Presentation on bernoulli
 
Presentation on inverse matrix
Presentation on inverse matrixPresentation on inverse matrix
Presentation on inverse matrix
 
Project Report - Diabetic Profile Management System : Structured Programming ...
Project Report - Diabetic Profile Management System : Structured Programming ...Project Report - Diabetic Profile Management System : Structured Programming ...
Project Report - Diabetic Profile Management System : Structured Programming ...
 
History and Real Life Applications of Fourier Analaysis
History and Real Life Applications of Fourier AnalaysisHistory and Real Life Applications of Fourier Analaysis
History and Real Life Applications of Fourier Analaysis
 

Último

Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsResearcher Researcher
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfNainaShrivastava14
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfalene1
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfisabel213075
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsapna80328
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmDeepika Walanjkar
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionSneha Padhiar
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESkarthi keyan
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书rnrncn29
 

Último (20)

Novel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending ActuatorsNovel 3D-Printed Soft Linear and Bending Actuators
Novel 3D-Printed Soft Linear and Bending Actuators
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdfComprehensive energy systems.pdf Comprehensive energy systems.pdf
Comprehensive energy systems.pdf Comprehensive energy systems.pdf
 
List of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdfList of Accredited Concrete Batching Plant.pdf
List of Accredited Concrete Batching Plant.pdf
 
signals in triangulation .. ...Surveying
signals in triangulation .. ...Surveyingsignals in triangulation .. ...Surveying
signals in triangulation .. ...Surveying
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithmComputer Graphics Introduction, Open GL, Line and Circle drawing algorithm
Computer Graphics Introduction, Open GL, Line and Circle drawing algorithm
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Cost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based questionCost estimation approach: FP to COCOMO scenario based question
Cost estimation approach: FP to COCOMO scenario based question
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTESCME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
CME 397 - SURFACE ENGINEERING - UNIT 1 FULL NOTES
 
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
『澳洲文凭』买麦考瑞大学毕业证书成绩单办理澳洲Macquarie文凭学位证书
 

Trapezoidal Method Explained

  • 2. Acknowledgement Md. Jashim Uddin Assistant Professor Dept. Of Natural Sciences Dept. Of Computer Science and Engineering Daffodil International University
  • 3. Content  What is Trapezoidal Method  General Formula of Integration  How it works  History of Trapezoidal Method  Advantages  Application of Trapezoidal Rule  Example  Problem & Algorithm  C code for Trapezoidal Rule  Live Preview  Conclusion  References
  • 4. Team : Root Finder Group Member : • Syed Ahmed Zaki ID:131-15-2169 • Fatema Khatun ID:131-15-2372 • Sumi Basak ID:131-15-2364 • Priangka Kirtania ID:131-15-2385 • Afruza Zinnurain ID:131-15-2345
  • 5. What is Trapezoidal Method ? In numerical analysis, the trapezoidal rule or method is a technique for approximating the definite integral. 푥푛 푥0 f(x) dx It also known as Trapezium rule. 1
  • 6. General Formula of Integration In general Integration formula when n=1 its Trapezoidal rule. I=h[n푦0+ 푛2 2 Δ푦0+ 2푛3−3푛2 12 Δ2푦0+ 푛4−4푛3+4푛2 24 Δ3푦0 + ⋯ ] After putting n=1, Trapezoidal Rule = ℎ 2 [푦0 + 푦푛 + 2(푦1 + 푦2 + 푦3 + ⋯ . 푦푛−1)] 2
  • 7. How it works ? Trapezoid is an one kind of rectangle which has 4 sides and minimum two sides are parallel Area A= 푏1+푏2 2 ℎ 3
  • 8. The trapezoidal rule works by approximating the region under the graph of the function as a trapezoid and calculating its area in limit. It follows that, 푏 f(x) dx ≈ 푎 (b−a) 2 [f(a) +f(b)] 4
  • 9. The trapezoidal rule approximation improves With More strips , from This figure we can clearly See it 5
  • 10. History Of Trapezoidal Method • Trapezoidal Rule,” by Nick Trefethen and André Weideman. It deals with a fundamental and classical issue in numerical analysis—approximating an integral. • By focusing on up-to-date covergence of recent results Trefethen 6
  • 11. Advantages There are many alternatives to the trapezoidal rule, but this method deserves attention because of • Its ease of use • Powerful convergence properties • Straightforward analysis 7
  • 12. Application of Trapezoidal Rule • The trapezoidal rule is one of the family members of numerical-integration formula. • The trapezoidal rule has faster convergence. • Moreover, the trapezoidal rule tends to become extremely accurate than periodic functions 8
  • 13. Example: 푥1 푥2 푥3 =2 =3 =4 =1 =5 5 1 + 푥2 푑푥 1 h = 5−1 4 =1 Trapezoidal Rule = 1 2 [ 푓(1) + 푓(5) + 2(푓(2) + 푓(3) + 푓(4)] = 1 2 [ (1 + 12) + (1 + 52) + 2((1 + 22) + (1 + 32) + (1 + 42)] = 1 2 × 92 = 46 9
  • 14. Problem & Algorithm Problem: Here we have to find integration for the (1+푥2)dx with lower limit =1 to upper limit = 5 Algorithm: Step 1: input a,b,number of interval n Step 2: h=(b-a)/n Step 3: sum=f(a)+f(b) Step 4: If n=1,2,3,……i Then , sum=sum+2*y(a+i*h) Step 5: Display output=sum *h/2 10
  • 15. C Code for Trapezoidal Method #include<stdio.h> float y(float x) { return (1+x*x); } int main() { float a,b,h,sum; int i,n; printf("Enter a=x0(lower limit), b=xn(upper limit), number of subintervals: "); 11
  • 16. scanf("%f %f %d",&a,&b,&n); h=(b-a)/n; sum=y(a)+y(b); for(i=1;i<n;i++) { sum=sum+2*y(a+i*h); } printf("n Value of integral is %f n",(h/2)*sum); return 0; } 12
  • 17. Live Preview Live Preview of Trapezoidal Method 5 1 + 푥2 푑푥 1 Lower limit =1 Upper limit =5 Interval h=4 13
  • 18. Conclusion Trapezoidal Method can be applied accurately for non periodic function, also in terms of periodic integrals. when periodic functions are integrated over their periods, trapezoidal looks for extremely accurate. 14 Periodic Integral Function
  • 19. References  http://en.wikipedia.org/wiki/Trapezoidal_rule  http://blogs.siam.org/the-mathematics-and-history- of-the-trapezoidal-rule/  And various relevant websites 15
  • 20.