Documentos de Académico
Documentos de Profesional
Documentos de Cultura
A
inicio
Z
Syms=x
Z=1
Funcion
f
Ingrese Z=2
intervalo
a,b Opcion
incorrecta
Ingrese punto
de
aproximacion
c
Ingrese
orden del
polinomio n
g=subs(f,c)
B p=g
j=n/5
m=0
tic
g=diff(f,i);
i=1:n F=subs(g,c);
p=p+(F*(x-c)^i)/
factorial(i);
toc
pe{i,1}=char(p);
i==1 || n>6
end
mod(i,fix(j))==0
hold on
grid on
m=m+1 ezplot(p,[a,b])
ezplot(f,[a,b])
m<7 subplot(2,3,i)
hold on
grid on
ezplot(p,[a,b])
ezplot(f,[a,b]) end
subplot(2,3,m)
end
C hold on
grid on
ezplot(p,[a,b])
ezplot(f,[a,b])
subplot(2,3,6)
hold off
p
w=0;
w~=1
disp('1.- Evaluar un
punto en el
polinomio')
disp('2.- Salir')
W=1
W=2
x1
Opcion
incorrecta
g=subs(p,x1)
W=1
g1=subs(f,x1)
D El resultado
es,
g
El error end
absoluto es , end
ea
h=diff(f,n+1);
F=subs(h,c);
p=p+(F*(x-
c)^(n+1))/
factorial(n+1);
g1=subs(p,x1);
er=abs(g
El error residual
es,er
et{1,1}=char(ea);
et{2,1}=char(er);
End