Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

MATLAB Command Window Page 1

10 Juni 2020 9:07:17

Program Metode Newtion Raphson


==============================
Masukan Harga E0.001
Masukkan Harga X:3.5
________________________________________

fx =

0.6062

x0 =

3.3657

i=

1 3.365651 0.606250 0.134349

fx =

0.0712

x0 =

3.3451

i=

2 3.345112 0.071249 0.020539

fx =

0.0015

x0 =

3.3446

i=

3 3.344645 0.001549 0.000467


-------------------------
Akar adalah=3.34464543>>
>> secant
MATLAB Command Window Page 2
10 Juni 2020 9:07:17

Progream Metode Secant


====================================
Masukan E:0.001
Masukkan x0:2.5
Masukkan xl:3.5

f=

Inline function:
f(x) = 0.95*x^3-5.9*x^2+10.9*x-6

____________________________________
i xi F(xi)
____________________________________
1

x0 =

3.5000

xl =

3.0631

i=

x0 =

3.0631

xl =

3.2919

i=

x0 =

3.2919

xl =

3.3671
MATLAB Command Window Page 3
10 Juni 2020 9:07:17

i=

x0 =

3.3671

xl =

3.3433

i=

x0 =

3.3433

xl =

3.3446

i=

------------------
Akarnya adalah = 3.34461305

>>

You might also like