Answer Fin Ex 2013 Jan 14 Civil
Answer Fin Ex 2013 Jan 14 Civil
k= 1.00
x
1 0.80
1.2 0.60
Ln,k(x)...
1.4
1.6 0.40
1.8
0.20
2
2.2 0.00
2.4
-0.20
2.6
2.8 -0.40
3
-0.60
2.7
1 1.2 1.
2.7
2.7
b) Hitung nilai interpolasi Polinomial Lagrange derajat 2
pada titik x = 1.7 dengan data nilai fungsi di titik 0, 1
dan 2 sbb:
No.
0
1
2
Lagrange Interpolation, n = 2
f(x) = 1/x
take three points
x0 =
x1 =
x2 =
k=
x
10
12
14
16
18
20
22
24
26
28
30
27
10
20
30
1.40 1
2
1.20
3
1.00 0 1 2
L2,0(x) L2,1(x) L2,2(x)
0.80 1.00 0.00 0.00
0.60 0.72 0.36 -0.08 L2,0(x)
Ln,k(x)...
0.48 0.64 -0.12 L2,1(x)
0.40 0.28 0.84 -0.12 L2,2(x)
0.12 0.96 -0.08
0.20 Row 20
0.00 1.00 0.00
0.00 -0.08 0.96 0.12
-0.12 0.84 0.28
-0.20
-0.12 0.64 0.48
-0.40 -0.08 0.36 0.72
0.00 0.00 1.00
-0.60
-0.105 0.510 0.595
1 1.2 1.4 1.6 1.8 2 2.2 2.4 2.6 2.8 3
3.50 x
3.00
x y
2.50
10 1.54
20 3.25
2.00
30 2.33
Pn(x)
2.882
Column J
22 24 26 Pn(x)
28 30
1.54
2.09
2.54
2.88
3.12
3.25
3.28
3.20
3.01
2.72
2.33
2.882
1.54
3.25
2.33
a) Hitung dan bandingkan pendekatan nilai turunan f (x) 0.8x1.5 0.2 cos
fungsi di bawah ini pada titik x = 0.31 dengan skema f '(x) 1.2 x0.5 sin 5x
diferensi mundur, diferensi maju dan diferensi tengah.
Gunakan h atau x = 0.01
h=
location
x-h =
x=
x+h =
bacward dif
central dif
forward dif
analitic sol
a =
b =
c =
d =
x
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
x) 0.8x1.5 0.2 cos 5x
x) 1.2 x0.5 sin 5x
0.01
x f(x)
0.30 0.1456009
0.31 0.1422395
0.32 0.1389756
f(x)
0.8
0.8
f (x)dx 0.32x2.5 0.04sin 5x
0.0
0.0
x
0
0.4
f ( x ) 0 . 8 x 1 .5 0 . 2 c o s 5 x
0.8
0.8 0.0 z 0.8 0.0 0.8
1.5
1 1
f z dz 0.8 2
0.2 cos 5
1 1
0.2828427125
0.5
0.45
0.4
f(x) integral x f(x)
0.2 0.25668187 0 0.2 0.037961464 0.35
0.441704678 0.2 0.179614636 0.029877104 0.3
0.4 0.119156403 0.02929643 0.25
0.6 0.173807902 0.061551258 0.2
0.8 0.441704678
0.15
0.8 0.1529065889 0.15868626
0.1
0 0-
analytic sol = 0.15290659 0.05
0
0 0.1 0.2 0.3
0.8 0.0 z 0.8 0.0
1.5
.0 0.8 0.0
0.2 cos 5 dz
2 2
2z 2 0.4
2
0.5
45
0.4
35
0.3
25
0.2
15
0.1
05
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8
Gauss derajat 3
-0.774596669 0.555555556 0.080670917 0.04481718
0 0.888888889 0.047662561 0.04236672
0.774596669 0.555555556 0.117930909 0.06551717
+ 0.1527011
GunakanmetodeEulerdanRungeKuttaorde2untukmendekatisolusisoalberikutpada
t=0.8.Bandingkanhasilnya,tuliskomentarsaudara/Use the Euler and 2nd Orde Runge-
Kutta Method to approximate the solutions of the following initial value problems at t =
0.8, compare the results (give your comment)
2nd Order
i t wi f(ti,wi) ti+h/2 h/2f(ti,wi)
0 0 1 0 0.1 0
1 0.2 1.062 0.5597281 0.3 0.0559728
2 0.4 1.2149628 0.8638505 0.5 0.0863851
3 0.6 1.399886 0.9173544 0.7 0.0917354
4 0.8 1.5758751 0.8206831 0.9 0.0820683
4.1t
y' ty , 0 t 0.8, y 0 1, h 0.2
y
solusisoalberikutpada
er and 2nd Orde Runge-
1.8
value problems at t =
1.6
1.4
1.2
0.8
0.6
0.4
0.2
fi++ wi+1 0
0.31 1.062 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
0.7648138 1.2149628
0.9246159 1.399886
0.8799458 1.5758751
0.7334999 1.7225751
1st Oder
2nd Order
h
50
45
40
35
30
25
20
15
0 5 10 15 20 25 3
hinggauntukmendekatisolusisoalaliranairtanahtidaktertekanberikut
rval10mpadarentangantaraSta+0mdanSta+50m,sertanilaiksebesar
10 15 20 25 30 35 40 45 50