You are on page 1of 4

delta x =

x
0
1
2
3
4
5
6

f(x)
0
1
2
3
4
5
6

1
2.718282
7.389056
20.08554
54.59815
148.4132
403.4288

metode trapezoidal
(f(xi)+f(xi-1))*(xi-xi-1)/2
1.8591409142
5.0536689637
13.737296511
37.341843478
101.50565457
275.9209763
435.41858073

simson rule :
1 404.4237
2 733.7932
3 532.4792
4 716.3399
5 485.0361
6 587.3761

imson rule :

metode trapezoidal
i

p
0
1
2
3
4
5
6
7
8

z
0
10
50
100
200
300
400
600
800

f(p)*(z-1)/p

(f(pi)+f(pi-pi-1)/2

1
0
0.998
-0.0002
0.996
-0.00008
1.004
0.00004
1.057
0.000285
1.146 0.000486667
1.254
0.000635
1.495
0.000825
1.723 0.00090375

-0.001
-0.0056
-0.001
0.01625
0.0385833333
0.0560833333
0.146
0.172875
f=

0.4221916667 atm

metode simpson
delta P =
i
p
0
1
2
3
4

200
z
0
200
400
600
800

p)*(z-1)/p
1
1.057
1.254
1.495
1.723

0
0.000285
0.000635
0.000825
0.00090375

ln(f/800)= 0.440916667
f=
1243.304949 atm

You might also like