Vous êtes sur la page 1sur 14

Laporan

Praktikum Komputasi

RAHMAD KUNCORO ADI


20160130159

Universitas Muhammadiyah Yogyakarta

1
Persamaan Non – Linier
Newton Method

Newton’s method atau juga disebut Newton-Raphson adalah


skema menentukan solusi numerik dari persamaan f(x) = 0, Metode
ini diilustrasikan pada Gambar 1 dibawah.

Gambar 1. Ilustrasi dari Newton-Raphson method

Mencari solusi dengan memilih nilai untuk titik X1 sebagai estimasi


pertama dari solusi persamaan tersebut. Estimasi kedua X2 diperoleh dengan
mengambil garis singgung pada titik (X1, f(X1)), diperoleh titik perpotongan
dari garis tanget dengan xaksi

2
Persamaan Newton-Rapshon dapat dituliskan :

Kapan proses perhitungan berakhir?


Proses perhitungan Newton-Raphson berakhir saat nilai x memenuhi persamaan
f(x) = 0.
Estimasi kesalahan relatif?
Perhitungan atau iterasi akan berhenti ketika estimasi kesalahan relatif

Kesalahan relatif ketika dua estimasi numerik dari solusi persamaan tersebut hasil
perhitungan dari nilai iterasi terakhir dengan iterasi sebelumnya, dapat
dirumuskan seperti berikut

Ketika solusi numerik yang diperkirakan mendekati hasil sebenarnya.


Diperkirakan bahwa perbedaan nilai iterasi terakhir dikurangi nilai iterasi
sebelumnya lebih kecil dibandingkan dengan nilai iterasi

terakhir

Toleransi f(x)

Iterasi akan berhenti ketika nilai absolut dari f(x) lebih kecil dari sebuah
nominal yang ditentukan

Sumber : Numerical Method for Engineers and Scientists, Amos Gilat & Vish
Subramaniam 2014

3
Pembahasan Soal
Set 1
1. Find the root by executing the user-deined function Newton with
kmax=20 and tol=1e-6

• Mencari akar dengan maksimum pengulangan = 20 dan toleransi = 1e-6

akarnewton.m = Script yang berisi fungsi untuk mencari akar newton


berdasarkarkan rumus Newton Raphson dengan fungsi yang bisa kita tentukan
sendiri.
Fx1.m = Berisi fungsi untuk F(x)
Fx2.m = Berisi fungsi untuk F’(x)

4
X3 + 2x2 + x + 2 = 0, [ -3,-1 ]

3X2 - x – 4 = 0, [ -2,0 ]

5
Cos x = 2x – 1, [ 0,2 ]

Ln ( 1/3x + 1 ) = 2x + 1, [ -1,0]

6
e-(x-1) = 2.6 + cos ( x + 1 ), [-1,1]

Sin x sinh x + 1 = 0, [3,4]

7
Set 2

2. The goal is to find two roots of


a. Graphically locate the roots.
b. To approximate each root, execute the user-deined function Newton
with default parameter values and x1 chosen as the closest integer on
the left of the root. If the intended root is not found this way, set x1
to be the integer closest to the root on its right and re-execute Newton.
Discuss the results.
3. All three roots of the equation lie
inside the interval [-2, 2].
a. Graphically locate the roots, and decide whether each root is simple
or of higher multiplicity
b. Approximate the root with higher multiplicity by executing the user-
deined function NewtonMod and the simple root by executing
Newton. In both cases use default parameter values, and x1 chosen as
the closest integer on the left of the root.

8
9
Cos x cosh x = 1.3 in, [-4,4]

10
X3 – 0.8 x2 – 1.12 x – 0.2560 = 0, [-2,2]

11
Set 3

5. The operation of Resistance Temperature Detector (RTD) is based on the


fct that the electrical resistance of the detector material changes with
temperature. For Nickel which is sometimes used in such detectors, the
resistance, RT, at temperature T(°C) as a function of temperature is given
by:
where R0 is the resistance of the detector at 0°C and A = 5.485 x 10-3, B =
6.65 x 10-6 , C = 2.805 x 10-11, and D = -2 x 10-17 are constants. Consider
a detector with R0 = 1000 and determine the temperature when its
resistance is 300 Ω
• Use the user-defned function NewtonSol
6. A simply supported I-beam is loaded
with a distributed load, as shown. The
deflection, y, of the center line of the
beam as a fnction of the position, x, is
given by the equation:

where L = 4 m is the length, E = 70 GPa is the elastic modulus, I = 52.9 x


10-6 m4 is the moment of inertia, and Wo = 20 kN/m Find the position x
where the deflection of the beam is maximum, and determine the deflection
at this point. ( The maximum deflection is at the point where dy/dx = 0 )

12
RT = R0( 1 + AT + BT2 + CT4 + DT6 )

13
Y = w0x / 360LEI ( 7L4 – 10 L2X2 + 3 X4)

14

Vous aimerez peut-être aussi