0% found this document useful (0 votes)
18 views

Excel Uts

Uploaded by

Willy Liu
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Excel Uts

Uploaded by

Willy Liu
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 29

2.5 x1 5 x2 20 x3 = -12.

5
7.5 x1 6.25 x2 10 x3 = -2.5
2.5 x1 5 x2 5 x3 = 50

pers 2 7.5 x1 6.25 x2 10 x3 = -2.5 x 1


pers 1 2.5 x1 5 x2 20 x3 = -12.5 x 3
7.5 x1 6.25 x2 10 x3 = -2.5
7.5 x1 15 x2 60 x3 = -37.5 -
pers 21 0 x1 -8.75 x2 -50 x3 = 35

pers 3 2.5 x1 5 x2 5 x3 = 50 x 1
pers 1 2.5 x1 5 x2 20 x3 = -12.5 x 1
2.5 x1 5 x2 5 x3 = 50
2.5 x1 5 x2 20 x3 = -12.5 -
pers 31 0 x1 0 x2 -15 x3 = 62.5

pers 31 0 x1 0 x2 -15 x3 = 62.5 x 1


pers 21 0 x1 -8.75 x2 -50 x3 = 35 x 0
0 x1 0 x2 -15 x3 = 62.5
0 x1 0 x2 0 x3 = 0 -
-15 x3 = 62.5

U= 2.5 5 20
0 -8.75 -50
0 0 -15

L= 1 0 0
3 1 0
1 0 1

A=LU 2.5 5 20
7.5 6.25 10
2.5 5 5

Dekomposisi LU
A 2.5 5 20
7.5 6.25 10
2.5 5 5

LU 1 0 0 u11 u12 u13


l21 1 0 0 u22 u23
l31 l32 1 0 0 u33

u11 2.5
l21 3
l31 1
u12 5
u22 -8.75
l32 0
u13 20
u23 -50
u33 -15

L D = C
1 0 0 d1 -12.5
3 1 0 d2 = -2.5
1 0 1 d3 50

d1 -12.5
d2 35
d3 62.5

U X = D
2.5 5 20 x1 -12.5
0 -8.75 -50 x2 = 35
0 0 -15 x3 62.5

x3 -4.166667
x2 19.80952
x1 -11.28571
U baris 1

f21

U baris 2

f31

f32

U baris 3
f(x) = 2x2 + 1x - 3

x y f(x)
0 -3 20
1 0
2 7
15
3 18

10

0
0 0.5 1 1.5 2

-5
f(x)

1 1.5 2 2.5 3 3.5


xl 0 f(x) = asdasd = 0
xu 20

iteration xl xu xr f(xl) f(xr) f(xl) . f(xr) stopping criterion


(%)
0 0 20 10 0.019824 -0.00477 -9.456E-05 -
1 0 10 5 0.019824 -0.018192 -0.000361 1
2 0 5 2.5 0.019824 0.07934 0.0015728 1
3 0 2.5 1.25 0.019824 0.440944 0.0087411 1
4 0 1.25 0.625 0.019824 0.561717 0.0111353 1
5 0.625 1.25 0.9375 0.077836 0.561717 0.043722 0.3333333333333
xu 1.5
xl 0.75

stopping
iteration xu xl xr f(xu) f(xl) f(xr) f(xl) * f(xr) criterion (%)
0 1.5 0.75 1.515609 -0.159814 -7.8387 -0.125122 0.980791
1 1.5 1.515609 1.571905 -0.159814 -0.125122 -0.010931 0.0013676 4%
2 1.5 1.571905 1.577184 -0.159814 -0.010931 -0.001031 1.1267E-05 0%
3 1.5 1.577184 1.577685 -0.159814 -0.001031 -9.79E-05 1.009E-07 0%
f(x) =
xi

f(x) = 2x3 - 11.7x2 + 17.7x - 5 = 0


iteration xi x(i+1) Error x = (5 - 2x3 + 11.7x2) / 17.7
0 #DIV/0! y1 = x
1 y2 = (5 - 2x3 + 11.7x2) / 17.7
2
3
4
.7x2 + 17.7x - 5 = 0
11.7x2) / 17.7

11.7x2) / 17.7
f(x) = 2x3 - 11.7x2 + 17.7x - 5
f'(x) = 6x2 - 23.4x + 17.7
xi+1 = xi - f(x)/f'(x)

x0

stopping
iteration xi f(x) f'(x) x(i+1) criterion (%)
0
1
2
3
4
x-1 0.2
x0 2

iteration x(i-1) f(xi-1) xi f(xi) xi+1 stopping criterion (%)


0 0.2 -327.8284 2 -38.81906 2.241772
1 2 -38.81906 2.241772 -35.1499 4.557903
2 2.241772 -35.1499 4.557903 -19.01242 7.286659
3 4.557903 -19.01242 7.286659 -12.53852 12.57166
4 7.286659 -12.53852 12.57166 -7.498312 20.43415
criterion (%)
delta x 0.1
xi 0
xi+1 0.1 xi-1 -0.1
xi+2 0.2 xi-2 -0.2
xi+3 0.3 xi-3 -0.3
xi+4 0.4 xi-4 -0.4
SINGLE TRAPEZOIDAL RULE

a b f(a) f(b) I n=
2 5 1 0.5 2.25 a=
b=
h=
MULTIPLE TRAPEZOIDAL
n
0
1
2

n= 2
a=
b=
h= 0

n x f(x) I
0 0
1 0
2 0 n=
a=
b=
h=

n
0
1
2
3
4
SINGLE SIMPSON 1/3 RULE SINGLE SIMPSON 3/8 RULE

2
1 n= 3
3 a= 0
1 b= 4
h= 1.333333
x f(x) I 0.466667
1 0.5 n x
2 0.2 0 0
3 0.1 1 1.333333
2 2.666667
3 4

MULTIPLE SIMPSON 1/3 RULE

MULTIPLE SIMPSON 3/8 RULE


n= 5
a=
b=
h= 0

n x
0 0
1 0
2 0
3 0
x f(x) I 4 0
5 0

step1 integral 2 segmen awal dgn s

I
step2 integralkan 3 segmen terakh

Total I
MPSON 3/8 RULE

f(x) I 1.120082
0.6
0.407035
0.125193
0.043478

SIMPSON 3/8 RULE

f(x)

integral 2 segmen awal dgn simpson 1/3 rule


integralkan 3 segmen terakhir dengan simpson 3/8

0
euler

f(x,y) = dy/dx = asdsad

y0 2
x0 0
dx 1
iteration xi yi f(x,y) yi+deltaX
0 0 2 -0.141421 1.858579
1 1 1.858579 -0.13633 1.722249
2 2 1.722249 -0.131234 1.591014
3 3 1.591014 -0.126135 1.464879
4 4 1.464879 -0.121032 1.343847
5 5 1.343847 -0.115924 1.227922
6 6 1.227922 -0.110812 1.117111
7 7 1.117111 -0.105693 1.011417
8 8 1.011417 -0.100569 0.910848
9 0.910848 -0.095438 0.81541
10 0.81541 -0.0903 0.72511
11 0.72511 -0.085153 0.639956
12 0.639956 -0.079997 0.559959
13 0.559959 -0.07483 0.485129
14 0.485129 -0.069651 0.415477
15 0.415477 -0.064458 0.35102
16 0.35102 -0.059247 0.291773
17 0.291773 -0.054016 0.237757
18 0.237757 -0.04876 0.188997
19 0.188997 -0.043474 0.145523
20 0.145523 -0.038147 0.107375
21 0.107375 -0.032768 0.074607
22 0.074607 -0.027314 0.047293
23 0.047293 -0.021747 0.025546
24 0.025546 -0.015983 0.009563
25 0.009563 -0.009779 -0.000216
26 -0.000216 Err:502 Err:502
27 Err:502 Err:502 Err:502
28 Err:502 Err:502 Err:502
29 Err:502 Err:502 Err:502
30 Err:502 Err:502 Err:502
31 Err:502 Err:502 Err:502
32 Err:502 Err:502 Err:502
33 Err:502 Err:502 Err:502
34 Err:502 Err:502 Err:502
35 Err:502 Err:502 Err:502
36 Err:502 Err:502
37 0
38
39
40
41
42
43
44
45
HEUN'S METHOD WITHOUT ITERATION

/dx = asdsad f(x,y) = dy/dx = asdsad

dx 1
x0 0
y0 37

iteration xi yi f(xi,yi) = k1 xi+h yi+k1h f(xi+h, yi+k1h) = k2


0 0 37
1
2
3
RUNGE-KUUTA METHODS 4 ORDER

yi+1 dx
x0
y0

iteration xi yi f(xi,yi) = k1xi +1/2h yi +1/2k1h


0
1
2
3
4
ODS 4 ORDER

f(xi+1/2h, yi+1/2k1h) = k2 yi+1/2k2 h k3 xi+h yi+k3h k4 yi+1


RUNGE-KUUTA METHOD ORDER 3

h 0.2

iteration xi yi f(xi,yi)=k1 xi+1/2h yi+1/2k1h


0 1 1 0.718282 1.1 1.071828
1 1.2 0.79913 1.100823 1.3 0.909212
HOD ORDER 3

k2 xi+h yi-k1h+2k2h k3 yi+1


-2.005485 1.2 0.05414981 1.277551 0.79913
-1.037636 1.4 0.16391081 1.468268 0.746415

You might also like