Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
6Activity
0 of .
Results for:
No results containing your search query
P. 1
Programas Métodos Iterativos MatLab

Programas Métodos Iterativos MatLab

Ratings: (0)|Views: 598|Likes:
Published by hylejam

More info:

Published by: hylejam on Apr 05, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

06/27/2014

pdf

text

original

 
Victor
Programas MatLabMétodos iterativos
 
Punto Fijo
 
Bisección
 
Victor
Código Matlab
Método de Bisección
clear;
 
clc;
 
%****************************************************************
 
disp('Programa MatLab - Método de Bisección');
 
disp('#####################################');
 
disp('Integrantes:');
 
disp('Flores Olivares Victor');
 
disp('Santiago Garcia Noe');
 
disp('4S11');
 
A=0;
 
C=0;
 
I=0;
 
G=0;
 
Num=0;
 
Cp=0;
 
B=0;
 
Fx=input('\nDigite la Función: ','s');
 
A=input('\nDigite el Valor de A: ');
 
C=input('\nDigite el Valor de C: ');
 
Num=input('\nDigite el Número de Iteraciones: ');
 
Cp=input('\nDigite el Criterio de Parada: ');
 
Er=Cp+1;
 
x=A;
 
fA=eval(Fx);x=C;
 
fC=eval(Fx);fprintf('\n\n');
 
if(fA*fC > 0)fprintf('\n\nNo existen Raíces en esta Ecuación');else
 
while(Er>Cp & I<Num)
 
I=I+1;
 
Ant=B;
 
G=A+C;
 
B=G/2;
 
x=B;
 
fB=eval(Fx);
 
if(fA*fB<=0)
 
C=B;
 
fC=fB;
 
else
 
A=B;
 
fA=fB;
 
end
 
Er=abs(((B-Ant) /B)*100);
 
fprintf('A=%.3f B=%.3f C= %.3f fA=%.3f fB=%.3ffC=%.3f Er= %.3f',A,B,C,fA,fB,fC,Er);
 
fprintf('\n');
 
end
 
fprintf('\n\nLa Raíz es: %.3f',B);
 
x=-10:.1:10;
 
ezplot(Fx);
 
end
 

Activity (6)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
Bryan Mayorga liked this
MarKos Teck liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->