DK4012
Metode Komputasi
Lecture 06 :
Source of Errors
Dosen :
Dr. Ir. Dede Sutarya, MT
Kontak/diskusi :
HP : 0812 855 3001
Email : sutarya.dd@gmail.com
Class Agenda : Minggu 08.00 10.30
Room :
1
4/5/2015
1
0.333333
3
2 1.4142...
2
4/5/2015
Problem
3
4/5/2015
Tc
D = D ( T ) dT
Ta
= a 0 + a 1 T + a 2 T2
4
4/5/2015
T(oF) (in/in/oF)
-340 2.45
-300 3.07
-220 4.08
D = D T
-160 4.72
-80 5.43
0 6.00
40 6.24
80 6.47
9
8.00
o
4.00
0.00
-400 -200 0 200
T ( o F)
5
4/5/2015
8.00
o
4.00
0.00
-400 -200 0 200
o
T ( F)
= -1.2360E-05T2 + 6.2714E-03T + 6.0234
12
6
4/5/2015
7
4/5/2015
Truncation Error
15
Truncation error
16
8
4/5/2015
x x 2 x3
e = 1 + x + + + ....................
2! 3!
Jika hanya digunakan 3 bagian,
x2
Truncation Error = e 1 + x +
x
2!
17
Another Example of
Truncation Error
secant line
P
tangent line
9
4/5/2015
Another Example of
Truncation Error
Menggunakan persegi panjang tertentu
untuk perkiraan suatu integral.
y
90
2
y=x
60
30
0 x
0 1.5 3 4.5 6 7.5 9 10.5 12
19
1.2
Hitung nilai dari e dengan nilai kesalahan
relative perkiraan kurang dari 1%.
1.2 2 1.2 3
e1.2 = 1 + 1.2 + + + ...................
2! 3!
n e 1 .2 Ea a %
1 1 __ ___
2 2.2 1.2 54.545
3 2.92 0.72 24.658
4 3.208 0.288 8.9776
5 3.2944 0.0864 2.6226
6 3.3151 0.020736 0.62550
10
4/5/2015
Example 2 Differentiation
2 f ( x + x ) f ( x )
Cari f (3) utk f ( x) = x gunakan f ( x)
x
dan x = 0.2
f (3 + 0.2) f (3)
f ' (3) =
0 .2
f (3.2) f (3) 3.2 2 32 10.24 9 1.24
= = = = = 6.2
0. 2 0.2 0 .2 0.2
Nilai sebenarnya adalah
f ' ( x ) = 2 x, f ' (3) = 2 3 = 6
21
Example 3 Integration
90
9
x
2
y=x 2
60
dx
3
30
0 x
0 3 6 9 12
22
11
4/5/2015
Integration example
x
2
dx = ( x 2 ) (6 3) + ( x 2 ) (9 6)
x =3 x =6
3
= (3 2 )3 + (6 2 )3
= 27 + 108 = 135
Nilai aktual di berikan oleh
9 9
x 3 93 33
3 x dx = 3 = 3 = 234
2
3
Kesalahan pemotongan, 234 135 = 99
23
Any
question
or
discussion
24
12