Академический Документы
Профессиональный Документы
Культура Документы
ALUMNOS:
PROBLEMA NRO1:
format long
x0=1.5i;
for i= 1:8
f=3*x0^5-2*x0^4+14*x0^3-2*x0^2-5*x0+11;
df=15*x0^4-8*x0^3+42*x0^2-4*x0-5;
x=x0-f/df;
dist=abs(x-x0);
disp([x,dist,f]);
x0=x
end
x0 = 0.801043034996569 + 0.857163023233016i
x0 =0.647746391796377 + 0.719812424117242i
x0 =0.613403492441402 + 0.673477826405259i
x0 =0.613403226640518 + 0.673466416493336i
x0 =0.613403226737049 + 0.673466416395200i
0.613403226737049 + 0.673466416395200i 0
0 + 0.000000000000001i
x0 = 0.613403226737049 + 0.673466416395200i
0.613403226737049 + 0.673466416395200i 0
0 + 0.000000000000001i
x0 =0.613403226737049 + 0.673466416395200i
PROBLEMA NRO2
format long
x0=-1;
for i= 1:8
f=3*x0^5-2*x0^4+14*x0^3-2*x0^2-5*x0+11;
df=15*x0^4-8*x0^3+42*x0^2-4*x0-5;
x=x0-f/df;
dist=abs(x-x0);
disp([x,dist,f]);
x0=x
end
x0 =-0.921875000000000
x0 =-0.912148808886911
x0 =-0.912008972981459
x0 =-0.912008972981458
x0 =-0.912008972981458
x0 =-0.912008972981458
PROBLEMA NRO 3
Muller:
eps =0.001;eps1=0.0001;
x0=0;x1=1;x2=2;
for i=1:5
f0=x0^3+2*x0^2+10*x0-20;
f1=x1^3+2*x1^2+10*x1-20;
f2=x2^3+2*x2^2+10*x2-20;
f10=(f1-f0)/(x1-x0);
f21=(f2-f1)/(x2-x1);
f210=(f21-f10)/(x2-x0);
a2=f210;
a1=f21-(x2+x1)*a2;
a0=f2-x2*(f21-x1*a2);
d1=-a1+(a1^2-4*a0*a2)^0.5;
d2=-a1+(a1^2-4*a0*a2)^0.5;
if abs(d1)>abs(d2);
x3=2*a0/d1;
else
x3=2*a0/d2;
end
f3=x3^3+2*x3^2+10*x3-20;
dist=abs(x3-x2);
disp([x3,dist])
if or ((dist<eps),(abs(f3)<eps1))
break
else
x0=x1;x1=x2;x2=x3;
end
end
-2.954065922853802 4.954065922853802
-9.565634280353640 6.611568357499838
2.506178484191570 12.071812764545211
3.466505489037983 0.960327004846413
34.831450040328455 31.364944551290474