Professional Documents
Culture Documents
Lecture 24
Lecture 24
Lecture -24
Muhammad Rafiq
Assistant Professor
University of Central Punjab
Lahore Pakistan
Simpsons
Rule
( )
( )
)
!
)(
!
... (a)
+ 2 )
( )
= h
+ (
+ (
I=h 3
I=h 3
+ (
)+ (
I=h
+ (
+ (
+ )
)+ (
)
+
I=h
I=
h[
+3
+
+3
+
+
3
0
+3
( )
( )
( )
( )
( )
]++
+3
+3
+3
+3
++
]+
+
+
+3
( )
+3
( )
3
[ + 3( + + + + +
=
8
)+ ]
+ 2( + + + +
+ +
Example No: 1
by simpsons
rule
h=
for ( n=3 )
Solution :a=0
b=
n=3
=>
0
6
f(x)
1.6487
3
2.3774
2
2.71828
+ 3(
= 3.10165
)+
Example No: 2
Evaluate
log
using
( n=6 )
( n=6 )
Solution:
Using
(i)
a=4
Simpsons ( ) rule
,
b=5.2
4
21
5
n=6
22
5
,
23
5
h=
24
5
25
5
=
26
5
log
= [
+ 4(
+ ) + 2( + ) +
log
Now ,
(ii)
.
.
= 0.7938242
Using
Simpsons ( ) rule
log
+ 3(
log
) + 2( ) +
log
= 0.7938235
=6
#2.
=6
#3.
#4.
1
ln
=6
=6
Using
(i) Simpsons
Rule ( )
( n=6 )
(ii) Simpsons
Rule ( )
( n=6 )