You are on page 1of 3

P=[1 -2 -1 3 -2.

5]

P=

1.0000 -2.0000 -1.0000

3.0000 -2.5000

>> Q = polyder(P)

Q=

-6

-2

>> x =-1

x=

-1

>> for i=1:10


x = x - polyval(P,x)/polyval(Q,x)
end
x=

-1.7000

x=

-1.4487

x=

-1.3670

x=

-1.3586

x=

-1.3586

x=

-1.3586

x=

-1.3586

x=

-1.3586

x=

-1.3586

x=

-1.3586

You might also like