You are on page 1of 1

Experiment 2

a) Find the roots of the equation x5-3x4+6x2-5x+1=0

>> f=[1,-3,0,6,-5,1]

f =

1 -3 0 6 -5 1

>> roots_f=roots(f)

roots_f =

-1.4812 + 0.0000i
2.1701 + 0.0000i
1.0000 + 0.0000i
1.0000 - 0.0000i
0.3111 + 0.0000i

>>

You might also like