0% found this document useful (0 votes)
30 views6 pages

CERTOK - Uasmtnk

The document provides solutions to numerical differentiation, Gaussian quadrature integration, and power method problems. For numerical differentiation, it calculates the forward, backward, and central differences and associated errors. For Gaussian quadrature integration, it performs a 2-point and 3-point Gaussian quadrature integration. For the power method, it performs 4 iterations to estimate the dominant eigenvalue and eigenvector of a 2x2 matrix.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views6 pages

CERTOK - Uasmtnk

The document provides solutions to numerical differentiation, Gaussian quadrature integration, and power method problems. For numerical differentiation, it calculates the forward, backward, and central differences and associated errors. For Gaussian quadrature integration, it performs a 2-point and 3-point Gaussian quadrature integration. For the power method, it performs 4 iterations to estimate the dominant eigenvalue and eigenvector of a 2x2 matrix.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

CERTOK uasmtnk

RA & @abe07
Ayo kita belajar metnum cuyyyyy
Selamat belajar
Contact me : [email protected]

CERTOK uasmtnk
RA & @abe07
Numerical Differentiation
Soal:
f(x)
=2x3 x2 + 1
x0
=0
h
= 0,2
cari galat dengan metode forward, backward dan center
Jawab:
Forward:
galat 1 forward
rumus : f(x0) = [f (x0+h) f(x0)]/h
x0+h = 0 + 0,2 = 0,2
f(x0+h) = 2(0,2)3 (0,2)2 + 1
= 0,016 - 0,04 + 1
= 0,976
F(x0) = 2(0)3 (0)2 + 1
=1
f(x0)

= [0,976 1]/0,2
= -0,12

galat 2 forward
rumus: f(x0) = [-f(x0+2h)+4f(x0+h)-3f(x0)]/2h
x0+2h = 0 + 0,4 = 0,4
f(x0+2h)= 2(0,4)3 (0,4)2 +1
= 0,128 0,16 + 1
= 0,968
f(x0) = [-0,968 + 4(0,976) 3(1)]/0,4
= [-0,968 + 3,904 3]/0,4
= 0,064/0,4
= -0,16
Backward:
Galat 1 backward
Rumus: f(x0) = [f(x0) f(x0-h)]/h
x0-h = 0 0,2 = -0,2
f(x0-h) = 2(-0,2)3 (-0,2)2 + 1

CERTOK uasmtnk
RA & @abe07
= -0,016 0,04 + 1
= 0,944
f(x0)

= [1 0,944]/0,2
= 0,28

Galat 2 backward
Rumus: f(x0) = [3f(x0) 4f(x0-h) + f(x0 2h)]/2h
x0-2h = 0 0,4 = -0,4
f(x0-2h) = 2(-0,4)3 (0,4)2 + 1
= -0,128 0,16 + 1
= 0,712
f(x0)

= [3(1) 4(0,944) + 0,712] / 0,4


= [3 3,776 + 0,712]/0,4
= 0,16

center
Galat 2 center
Rumus: f(x0) = [f(x0+h) f(x0-h)]/2h
= [0,976 0,944]/0,4
= 0,08
Galat 4 center
Rumus: f(x0) = [-f(x0+2h) + 8f(x0 +h) 8f(x0 h) + f(x0 -2h)]/12h
= [-0,968 + 8(0,976) 8(0,944) + 0,712]/2,4
= [-,968 + 7,808 7,552 + 0,712]/2,4
=0
Ingat-ingat:
Forward
Galat 1 f(x0) = [f (x0+h) f(x0)]/h
Galat 2 f(x0) = [-f(x0+2h)+4f(x0+h)-3f(x0)]/2h
Backward
Galat 1 -> f(x0) = [f(x0) f(x0-h)]/h
Galat 2 -> f(x0) = [3f(x0) 4f(x0-h) + f(x0 2h)]/2h
Center
Galat 2 -> f(x0) = [f(x0+h) f(x0-h)]/2h
Galat 4 -> f(x0) = [-f(x0+2h) + 8f(x0 +h) 8f(x0 h) + f(x0 -2h)]/12h

CERTOK uasmtnk
RA & @abe07
Integrasi Kuadrator Gauss (2 atau 3 titik)
Soal:
I = x^2 X dx = 26,79908
Jawab:
a(batas bawah) = 0
b(batas atas) = 2
rumus: f(0)=
=
= 1 . f (1+1 u)
= f (1+u)
Bila f(x)
Maka f(1+u)

=
=

x^2

. (1+u)

Setelah itu masukkan rumus untuk 2 titik:


. (1+U)
= C1 . f (U1) + C2 . f (U2)

Nilai eksak: C1 = 1 ; U1 =

; C2 = 1 ; U2 =

= 1.f (

= [e^(1= [e^(1-

) + 1.f ( )

)2 . (1)2 . (1-

)]+[e^(1+
)]+[e^(1+

)2 . (1 +
)2 . (1 +

)]
)]

= [2,7183^0,1787 . 0,4227]+[2,7183^2,4879 . 1,5773]


= 0,5054 + 18,9847
= 19,4901
3 titik:
. (1+U)
= C1 . f (U1) + C2 . f (U2) + C3 . f (U3)

Nilai eksak: C1 = 0,5556 ; U1 = -0,7746 ; C2 = 0,8889 ; U2 = 0 ; C3 = 0,5556 ; U3 = 0,7746


= 0,5556 f(-0,7746) + 0,8889 f(0) + 0,5556 f(0,7746)
= 0,5556 [e^(1-0,7746)2 . (1-0,7746)] + 0,8889 [e^(1+0)2 . (1+0)] +
0,5556 [e^(1+0,7746)2 . (1+ 0,7746)]
= 0,5556(1,0521 . 0,2254) + 0,8889(2,7183) + 0,5556 (23,3179 . 1,7746)
= 25,5387

CERTOK uasmtnk
RA & @abe07
Simpson
Soal:

N=6
Jawab:
h = batas atas batas bawah / jumlah n
=
= = 0,6667
X
X0=1
X1 = 1,6667
X2= 2,3334
X3= 3,0001
X4= 3,6668
X5= 4,3335
X6= 5,0002

F(x)
(12 = 4(1)+5) = 2
1,1111
1,1111
2,0002
3,7782
6,4452
10,0012

Nilai X0 pasti = 1
Lalu cara mencari f(x), masukkan nilai x ke fungsi x untuk soal ini (
Untuk mendapatkan nilai x yang selanjutnya nilai x sebelumnya + h
Cari nilai x sampai sebanyak N yang dicari

Rumus: I = [f(x0)+f(xN)+4 ( f(ganjil) + 2( f(genap)]


f(ganjil) artinya f dengan nilai ganjil dari 0 sampai N (N=6, angka ganjilnya sampi 6 adalah 1,3,5)
f(genap) artinya f dengan nilai genap dari 0 sampai N (N=6, angka genapnya sampai 6 adalah 2,4)
I = [f(x0)+f(x6)+4 (f(x1)+f(x3)+f(x5)) + 2(f(x2) + f(f(x4)) ]

(60,0058)
= 13,3353

CERTOK uasmtnk
RA & @abe07
Power Method
Soal:
A= [

] ; X0 = [ ]

Lakukan 4 kali iterasi


Jawab:
A.X0 = [

][ ] = [

Pilih value terbesar (abaikan plus minus), yaitu 10


Lalu matrix dibagi dengan value terbesar tadi supaya jadi 1, yaitu dibagi -10
[

] / -10 = [

W1 = -10[

]
]

A.X2 = [
[

][

] -2,8 = [
]

A.X3 = [

][

]= [

] -2,284 = [

][

]= [

] - 2,128 = [

W4 = - 2,128[

W3 = -2,284[
A.X4 = [

W2 = -2,8[

]=[

You might also like