Professional Documents
Culture Documents
Menghitung Akar Akar Persamaan Dengan Matlab
Menghitung Akar Akar Persamaan Dengan Matlab
21010121410004
1. Use MATLAB to compute the roots of the
following polynomials:
a. p (x) = x³ + 8x² +10x + 4
maka, akar akar nya
adalah
X1 = -6.5708
X2 = -0.7146 + 0.3132i
X3 = -0.7146 - 0.3132i
b. p (y) = y5 + 7y4 + 19y3 + 25y2 + 16y + 4
Maka,
p(x) = x5 + 13x4 + 67x3 + 171x2 + 216x + 108
3. Use MATLAB to evaluate the polynomials
below at the specified values.
a. p (x) = x³ + 8x² +10x + 4 at x = 1.25
F(a)
F(a)
X0 = (a + b)/2 = (1+2)/2 = 1,5
X1 = 1,2543
X2 = 1,1723
X3 = 1,1641
X4 = 1,1640
X5 = 1,1640
X5 - X4 = 1,1640 – 1,1640 = 0
b . F(x) = a=2 b=4
F(b)
F(a)
X0 = (a + b)/2 = (2+4)/2 = 3
X1 = 3
X1 - X0 =3-3=0
2.Repeat Exercise 1 above using the Bisection
method.
a . F(x) = X4 + X – 3 a=1 b=2
b . F(x) = a=2 b=4
3. Repeat Example 2.5 using MATLAB.
Hint: Use the procedure of Example 2.2
Compute the real roots of the trigonometric
function
y = f(x) = cos (2x)+sin(2x)+x-1
X0 =-1
X1 =0,6742
X2 =2,3817
X3 =2,2417
X4 =2,2253
X5 =2,2251
X6 =2,2251
X6 –X5 = 2,2251-2,2251 =0