You are on page 1of 1

x =

2.0018 + 0.0013i
2.0018 - 0.0013i
1.9993 + 0.0022i
1.9993 - 0.0022i
1.9977 + 0.0000i

h = [1 0 -12.08 51.7635 -91.8601 55.097];


h1 = roots(h)
h1 =

-5.11206744334437 + 0.00000000000000i
1.17753822031817 + 2.06579793109624i
1.17753822031817 - 2.06579793109624i
1.37849550135401 + 0.07708299483368i
1.37849550135401 - 0.07708299483368i

function y = prob3(x)
y = x^5 - 12.08*x^3 + 51.7635*x^2 - 91.8601*x + 55.097;
h2= fzero('prob3', 1.5)
h2 = -5.11206744334436

c = [1 -12.74 56.6413 -103.0537 64.0152];


c1 = roots(c)
c1 =

5.22999354679230
3.75001570602922
2.39998791950270
1.36000282767579

function y = prob4(x)
y = x^4 - 12.74*x^3 + 56.6413*x^2 - 103.0537*x + 64.0152;
c2= fzero('prob4', 1.5)
c2 = 1.36000282767579

You might also like