You are on page 1of 20

RIVERA ADIENTA PUTRI

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, akar akar nya adalah


Y1 = -2
Y2 = -2
Y3 = -1
Y4 = -1
Y5 = -1
2. Use MATLAB to derive the polynomials
having the following roots:
a. X1 = – 6.5708
X2 = – 0.7146 + 0.3132j
X3 = – 0.7146 – 0.3132j

Maka, p(x) = x³ + 8x² +10x + 4


b. X1 = – 2 X4 = – 3
X 2 = – 2 X5 = – 3
X3 = – 3

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

Maka, p(1.25) = 30.953


b. p (y) = y5 + 7y4 + 19y3 + 25y2 + 16y + 4
at y = -3.75

Maka, p(-3.75)= -63.690


1. Use MATLAB to sketch the graph for each of the
following functions, and verify from the graph that
f(a) and f(b) , where a and b defined below, have
opposite signs. Then, use Newton’s method to
estimate the root of f(x) = 0 that lies between a
and b .
a . F(x) = X4 + X – 3 a=1 b=2
F(b)
F(b)

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

You might also like