SlideShare a Scribd company logo
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

More Related Content

What's hot

Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Bijay Mishra
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
Abu Kaisar
 
Fourier series
Fourier series Fourier series
Fourier series
Pinky Chaudhari
 
Secent method
Secent methodSecent method
Secent methodritu1806
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
VISHAL DONGA
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
Tarun Gehlot
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rule
hitarth shah
 
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
zahid6
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
Tarun Gehlot
 
Trapezoidal rule
Trapezoidal rule Trapezoidal rule
Trapezoidal rule
ShrutiMalpure
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 rule
HapPy SumOn
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
Meet Nayak
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
sonendra Gupta
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integrals
harshid panchal
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
GOWTHAMGOWSIK98
 

What's hot (20)

Chapter 4 (maths 3)
Chapter 4 (maths 3)Chapter 4 (maths 3)
Chapter 4 (maths 3)
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
Fourier series
Fourier series Fourier series
Fourier series
 
Secent method
Secent methodSecent method
Secent method
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
trapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 ruletrapezoidal and simpson's 1/3 and 3/8 rule
trapezoidal and simpson's 1/3 and 3/8 rule
 
Es272 ch6
Es272 ch6Es272 ch6
Es272 ch6
 
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
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
Trapezoidal rule
Trapezoidal rule Trapezoidal rule
Trapezoidal rule
 
Derivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 ruleDerivation of Simpson's 1/3 rule
Derivation of Simpson's 1/3 rule
 
Gauss jordan and Guass elimination method
Gauss jordan and Guass elimination methodGauss jordan and Guass elimination method
Gauss jordan and Guass elimination method
 
Dobule and triple integral
Dobule and triple integralDobule and triple integral
Dobule and triple integral
 
bisection method
bisection methodbisection method
bisection method
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
ppt on application of integrals
ppt on application of integralsppt on application of integrals
ppt on application of integrals
 
NUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONSNUMERICAL INTEGRATION AND ITS APPLICATIONS
NUMERICAL INTEGRATION AND ITS APPLICATIONS
 

Similar to Presentation on Numerical Method (Trapezoidal Method)

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
HidenoriOgata
 
UNIT-II.pptx
UNIT-II.pptxUNIT-II.pptx
UNIT-II.pptx
JyoReddy9
 
Introduction to CFd analysis.FEM4CFD-Week1.pptx
Introduction to CFd analysis.FEM4CFD-Week1.pptxIntroduction to CFd analysis.FEM4CFD-Week1.pptx
Introduction to CFd analysis.FEM4CFD-Week1.pptx
siranjeevi56
 
2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx2. Fixed Point Iteration.pptx
2. Fixed Point Iteration.pptx
saadhaq6
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
hodcsencet
 
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.pdf
MTrang34
 
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdfDeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
Sean 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
 
1519 differentiation-integration-02
1519 differentiation-integration-021519 differentiation-integration-02
1519 differentiation-integration-02
Dr Fereidoun Dejahang
 
Branch and bounding : Data structures
Branch and bounding : Data structuresBranch and bounding : Data structures
Branch and bounding : Data structures
Kàŕtheek Jåvvàjí
 
01 - DAA - PPT.pptx
01 - DAA - PPT.pptx01 - DAA - PPT.pptx
01 - DAA - PPT.pptx
KokilaK25
 
勾配法
勾配法勾配法
勾配法
貴之 八木
 
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
ArijitDhali
 
HOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptxHOME ASSIGNMENT (0).pptx
HOME ASSIGNMENT (0).pptx
SayedulHassan1
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
Yagya Dev Bhardwaj
 
HOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptxHOME ASSIGNMENT omar ali.pptx
HOME ASSIGNMENT omar ali.pptx
SayedulHassan1
 
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
JifarRaya
 

Similar to Presentation on Numerical Method (Trapezoidal Method) (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
 
Introduction to CFd analysis.FEM4CFD-Week1.pptx
Introduction to CFd analysis.FEM4CFD-Week1.pptxIntroduction to CFd analysis.FEM4CFD-Week1.pptx
Introduction to CFd analysis.FEM4CFD-Week1.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
 
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
 

More from Syed Ahmed Zaki

Networking Lab Report
Networking Lab ReportNetworking Lab Report
Networking Lab Report
Syed Ahmed Zaki
 
Lab report assembly
Lab report assemblyLab report assembly
Lab report assembly
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 Code
Syed Ahmed Zaki
 
Presentation on Transmission Media
Presentation on Transmission MediaPresentation on Transmission Media
Presentation on Transmission Media
Syed Ahmed Zaki
 
Architecture of 80286 microprocessor
Architecture of 80286 microprocessorArchitecture of 80286 microprocessor
Architecture of 80286 microprocessor
Syed Ahmed Zaki
 
Algorithm Presentation
Algorithm PresentationAlgorithm Presentation
Algorithm Presentation
Syed 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 Education
Syed Ahmed Zaki
 
Presentation on bernoulli
Presentation on bernoulliPresentation on bernoulli
Presentation on bernoulli
Syed Ahmed Zaki
 
Presentation on inverse matrix
Presentation on inverse matrixPresentation on inverse matrix
Presentation on inverse matrix
Syed 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 Analaysis
Syed Ahmed Zaki
 

More from 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
 

Recently uploaded

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 

Recently uploaded (20)

CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 

Presentation on Numerical Method (Trapezoidal Method)

  • 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.