metodos[1]
-
Upload
jeam-pierre-yh -
Category
Documents
-
view
216 -
download
0
description
Transcript of metodos[1]
Andrea Salazar C.
GRAFICO DE LA FUNCION
COMPROBACION DEL PROGRAMA MATLAB
COMPROBACION del desarrollo de ejercicio
Segn la frmula de Newton:
f(xo)=-8 f(xo,x1)=(5-(-8))/(3)=13/3
f(x0,x1,x2)=(-6-13/3)/(1+3)=-31/12
f(x1,x2)=(-1-5)/(1-0)=-6
f(x0,x1,x2,x3)=(13/6-(-31/12))/(4-(-3))=19/28
f(x1,x2,x3)=8/3-(-6)/(4-0)=13/6 f(x1,x2)=(-1-5)/(1-0)=-6
f(x2,x3)=(7-(-1))/(4-1)=8/3
f(x0,x1,x2,x3,x4)=((-37/60)-19/28)/(6-(-3))=-136/945
f(x1,x2,x3,x4)=((-23/15)-13/6)/(6-0)=-37/60
f(x1,x2,x3)=13/6
f(x2,x3,x4)=(-5-8/3)/(6-1)=-23/15
f(x2,x3)=8/3
f(x3,x4)=(-3-7)/(6-4)=-5
N(x)=-8+13/3*(x+3)-31/12*(x+3)*(x)+19/28*(x+3)*(x-1)*x-136/945*(x+3)*x*(x-1)*(x-4)Reemplazando en x=-2
Solucin: 10.7524
Resolucin: f1=x^2+y^2+z^2-9; f2=x^2+4y^2-4; f3=x+y+8z-8 COMPROBACION DEL PROGRAMA MATLAB
GRAFICO DE LA FUNCION
Formas Alternativas:Derivadas:
Solucin:
3
PRACTICA ENCARGADO
12.- Si x-30146
f(x)-85-1-7-3, encontrar por el Polinomio de Newton f(-2)
clc;clear;
x=-2;
y=-8+13/3*(x+3)-31/12*(x+3)*(x)+19/28*(x+3)*(x-1)*x-136/945*(x+3)*x*(x-1)*(x-4)
11.- Encontrar una solucin por el mtodo de Newton Raphson modificado, el SENL:
X^2+Y^2+Z^2=9;
X^2+4Y^2=4;
X+Y+8Z-8=0;
clc;clear;
disp('metodo de nweton-raphson modificado s.e. no lineales');
disp('-------------------------------------------');
xo=1;yo=2;zo=3;
disp('j x y z');
disp('-------------------------------------------');
for j=1:1000
f1=((xo^2)+(yo^2)+(zo^2)-9);f1x=2*xo;f1y=2*yo;f1z=2*zo;
f2=((xo^2)+(4*(yo^2))-4);f2x=2*xo;f2y=8*yo;f2z=0;
f3=(xo+yo+8*zo-8);f3x=1;f3y=1;f3z=8;
A=[f1x,f1y,f1z,-f1;f2x,f2y,f2z,-f2;f3x,f3y,f3z,-f3]; B=rref(A);
h=B(:,4);
fprintf ('%2d',j);fprintf ('%8.3f',xo);fprintf ('%8.3f',yo);fprintf ('%8.3f',zo);
disp(' ');
xo=xo+h(1);yo=yo+h(2);zo=zo+h(3);
end
LA SOLUCION ES INFINITA
10.- Determine los puntos, en la superficie y^2-xz=4 que estn ms cerca del origen, calcule la distancia mnima.