0% found this document useful (0 votes)
37 views7 pages

Tugas 1 Metode Numerik Nama: Melki NIM: 2015-7011-038 1. Newton-Raphson Methode

1. The document describes solving equations using the Newton-Raphson and Secant methods. It gives an example of using Newton-Raphson to find the roots of the equation f(x) = 1.5x4 + 3x3 - 0.75x2 - 6. 2. For the Secant method, it iterates between x1 = 0.8 and x2 = 1.9 to find the root of the equation f(x) = 2x4 - x3 - 8x + 4. 3. Tables and graphs are presented to show the convergence of the results for both methods as the number of iterations increases.

Uploaded by

Ombar Mouko
Copyright
© © All Rights Reserved
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)
37 views7 pages

Tugas 1 Metode Numerik Nama: Melki NIM: 2015-7011-038 1. Newton-Raphson Methode

1. The document describes solving equations using the Newton-Raphson and Secant methods. It gives an example of using Newton-Raphson to find the roots of the equation f(x) = 1.5x4 + 3x3 - 0.75x2 - 6. 2. For the Secant method, it iterates between x1 = 0.8 and x2 = 1.9 to find the root of the equation f(x) = 2x4 - x3 - 8x + 4. 3. Tables and graphs are presented to show the convergence of the results for both methods as the number of iterations increases.

Uploaded by

Ombar Mouko
Copyright
© © All Rights Reserved
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/ 7

TUGAS 1

METODE NUMERIK

NAMA : MELKI

NIM : 2015-7011-038

1. Newton-Raphson Methode
f(xi) = 1.5𝑥 4 + 3𝑥 3 − 0.75𝑥 2 − 6
(𝐴+𝐵+𝐶)
xi = 0.75 + 30
2. Secant Methode
f(x) = 2x4 - x3 + 8x + 4
0+6
x1 = 0.8 + ( 20 ) = 1.1000
7+6
x2 = 1.9 + ( 20 ) = 2.5500
Carilah nilai
a. Akar-akar persamaan
b. Error (ε)
c. Hub. Persamaan

Penyelesaian :

1. Newton-Raphson Methode

𝑓(𝑥) = 1.5𝑥 4 + 3𝑥 3 − 0.75𝑥 2 − 6


𝑓′(𝑥) = 6𝑥 3 + 9𝑥 2 − 1.5𝑥
(0+3+8)
𝑥𝑖 = 0.75 + = 1.1167
30

 Akar-akar persamaan
Trial 1

𝑥𝑖 = 1.1167

𝑓(𝑥) = 1.5(1.1167 )4 + 3(1.1167 )3 − 0.75(1.1167 )2 − 6 = −0.42504


𝑓 ′ (𝑥) = 6(1.1167 )3 + 9(1.1167 )2 − 1.5(1.1167 ) = 17.90340

𝑓(𝑥𝑖) −0.42504
𝑥𝑖 + 1 = 𝑥𝑖 − 𝑓′ (𝑥𝑖) = 1.1167 − 17.90340 = 1.1404

Cek besar error

1.140441−1.1167
𝜺= 1.1167
× 100% = 2.08172%
Trial 2

𝑥𝑖 = 1.1404

𝑓(𝑥) = 1.5(1.1404 )4 + 3(1.1404 )3 − 0.75(1.1404 )2 − 6 = 0.01170


𝑓 ′ (𝑥) = 6(1.1404 )3 + 9(1.1404 )2 − 1.5(1.1404 ) = 18.8943

𝑓(𝑥𝑖) 0.01170
𝑥𝑖 + 1 = 𝑥𝑖 − 𝑓′ (𝑥𝑖) = 1.1404 − 18.8943 = 1.139822

Cek besar error

1.139822−1.1404
𝜺= × 100% = −0.05431729%
1.13404

Trial 3

𝑥𝑖 = 1.139822

𝑓(𝑥) = 1.5(1.139822 )4 + 3(1.139822 )3 − 0.75(1.139822 )2 − 6 = 0.00001


𝑓 ′ (𝑥) = 6(1.139822 )3 + 9(1.139822 )2 − 1.5(1.139822 ) = 18.86810

𝑓(𝑥𝑖) 0.00001
𝑥𝑖 + 1 = 𝑥𝑖 − 𝑓′ (𝑥𝑖) = 1.139822 − 18.86810 = 1.139821

Cek besar error

1.139821−1.139822
𝜺= × 100% = −0.00003781%
1.139822

Trial 4

𝑥𝑖 = 1.139821

𝑓(𝑥) = 1.5(1.139821 )4 + 3(1.139821 )3 − 0.75(1.139821 )2 − 6 = 0.00000


𝑓 ′ (𝑥) = 6(1.139821 )3 + 9(1.139821 )2 − 1.5(1.139821 ) = 18.86809

𝑓(𝑥𝑖) 0.00001
𝑥𝑖 + 1 = 𝑥𝑖 − 𝑓′ (𝑥𝑖) = 1.139821 − 18.86810 = 1.139821

Cek besar error

1.139821−1.139821
𝜺= × 100% = −0.0000000%
1.139821
 TABEL PERSAMAN

trial xi f(xi) f'(xi+1) xi+1 ε


1 1.11670 -0.42504 17.90340 1.140441 2.08172653 %
2 1.14044 0.01170 18.89437 1.139822 -0.05431729 %
3 1.13982 0.00001 18.86810 1.139821 -0.00003781 %
4 1.13982 0.00000 18.86809 1.139821 0.00000000 %

 GRAFIK

xi
1.14500
1.14000
1.13500
1.13000
1.12500
xi

1.12000 xi
1.11500
1.11000
1.10500
1.10000
1 2 3 4
f'(xi+1)
19.00000
18.80000
18.60000
18.40000
f'(xi+1)

18.20000
f'(xi+1)
18.00000
17.80000
17.60000
17.40000
1 2 3 4

ε
2.50000000

2.00000000

1.50000000

1.00000000 ε
ε

0.50000000

0.00000000
1 2 3 4
-0.50000000
 METODE SECAN

𝑓(𝑥) = 2 𝑥 4 − 𝑥 3 − 8 𝑥 + 4
0+8
𝑥1 = 𝑥𝑖 = 0,8 + ( )
20
0+8
𝑥𝑖 = 0,8 + ( ) = 1,2
20
3+8
𝑥2 = 𝑥𝑖 + 1 = 1,9 + ( )
20
3+8
𝑥𝑖 = 1,9 + ( ) = 2,45
20

 NilaiAkar-akar
 𝑰𝒕𝒆𝒓𝒂𝒔𝒊 𝑰
𝑓(𝑥1) = 𝑓(𝑥) = 2 𝑥 4 − 𝑥 3 − 8 𝑥 + 4
= 2 (1,2)4 + (1,2)3 − 8 (1,2) + 4
= -11.1808

𝑓(𝑥2) = 𝑓(𝑥) = 2 𝑥 4 − 𝑥 3 − 8 𝑥 + 4
= 2 (2,45)4 − (2,45)3 − 8 (2,45) + 4
= 33.7539

𝑓 (𝑥2)(𝑥2 − 𝑥1)
𝑥3 = 𝑥2 −
𝑓 (𝑥2) − 𝑓 (𝑥1)
(33.7539)(2,45−1,2)
= 2,45 −
(33.7539)–(−11.1808)

= 1.5110

𝑥3−𝑥1
ε = 𝑥 100%
𝑥3
1.5110−1,2
= 𝑥 100%
1.5110

= 20.58%
 TABEL PERSAMAN

ITERASI x1 x2 f(x1) f(x2) x* ε


-
1 1.2000 2.4500 33.7539 1.5110 20.58%
11.1808
2 2.4500 1.5110 33.7539 -9.1121 1.7106 -43.22%
3 1.5110 1.7106 -9.1121 -5.5649 2.0238 25.34%
4 1.7106 2.0238 -5.5649 5.0692 1.8745 8.74%
5 2.0238 1.8745 5.0692 -0.8900 1.8968 -6.69%
6 1.8745 1.8968 -0.8900 -0.1104 1.8999 1.34%
7 1.8968 1.8999 -0.1104 0.0030 1.8999 0.16%
8 1.8999 1.8999 0.0030 0.0000 1.8999 0.00%
9 1.8999 1.8999 0.0000 0.0000 1.8999 0.00%

 GRAFIK

x1
3.0000

2.5000

2.0000
x1

1.5000
x1
1.0000

0.5000

0.0000
1 2 3 4 5 6 7 8 9
f(x1)
40.0000
35.0000
30.0000
25.0000
20.0000
15.0000
f(x1)

f(x1)
10.0000
5.0000
0.0000
-5.0000 1 2 3 4 5 6 7 8 9
-10.0000
-15.0000

ε
30.00%

20.00%

10.00%

0.00%
1 2 3 4 5 6 7 8 9
-10.00% ε
ε

-20.00%

-30.00%

-40.00%

-50.00%

You might also like