Professional Documents
Culture Documents
clc;clear;
x= -1;
for i=1:10
y=x.^3 + 2*x.^2 + 10*x -20 ;
y1=3*x.^2+4*x+10;
x1=x-y/y1;
disp([x,x1]);x=x1;
end;
-1.0000 2.2222
2.2222 1.5376
1.5376 1.3767
1.3767 1.3688
1.3688 1.3688
1.3688 1.3688
1.3688 1.3688
1.3688 1.3688
1.3688 1.3688
1.3688 1.3688
11b
clc;clear;
x= -1;
for i=1:10
y=2*x.^3-4*x + 9 ;
y1=6*x.^2-4;
x1=x-y/y1;
disp([x,x1]);x=x1;
end;
-1.0000 -6.5000
-6.5000 -4.4389
-4.4389 -3.1417
-3.1417 -2.4091
-2.4091 -2.1065
-2.1065 -2.0504
-2.0504 -2.0486
-2.0486 -2.0486
-2.0486 -2.0486
-2.0486 -2.0486
>>