Professional Documents
Culture Documents
Numerical Integration Lec. 3.4: Newton-Cotes Integration Formulae
Numerical Integration Lec. 3.4: Newton-Cotes Integration Formulae
INTEGRATION
Lec. 3.4: Newton-Cotes Integration Formulae
Dr. Niket Kaisare
Department of Chemical Engineering
IIT–Madras
Numerical Integration
Single application
Trapezoidal Rule
Simpson’s 1/3rd Rule
Simpson’s 3/8th Rule
Numerical Integration
• Single application
• Trapezoidal Rule
Numerical Integration
• Single application
• Trapezoidal Rule
• Trapezoidal Rule:
On( (
∫O ! # m# = / ! k + ! k + ℎ
• For Interval-2:
( 1 2 … … n
s/ = /
! k +ℎ + ! k + 2ℎ
a b
a+h
• And so on… è s = s8 + s/ + ⋯ sc
t6O
ℎ=
c
Multiple Applications of Trapezoidal Rule
Example 1
NUMERICAL INTEGRATION
Lec. 3.6: MATLAB Functions and Application
Dr. Niket Kaisare
Department of Chemical Engineering
IIT–Madras
Using functions:
@(x,y,…) nameOfFun(<var list>)
• Usage of MATLAB function:
I = quad(@(x) myFun(x),x);