Professional Documents
Culture Documents
I. INTRODUCCIN
y = f (x)
2
En el caso del mtodo de la regla falsa, el estimado de c se
encuentra por medio de una interpolacin lineal entre los
puntos (b, f(b)) y (a, f(a)).
La estimacin de la raz se hace a travs de la siguiente
formula:
II. ALGORITMO
Mtodo de Bisecciones.
1.
Datos de entrada:
a.
b.
tolerancia (t)
display(p)
c.
fin
2.
3.
Tomar i = 1
4.
IV. CDIGO
a.
b.
(calcular pi).
si f(p) = 0
< t,
5.
6.
III. PSEUDOCDIGO
Declarar funcin
Input a
Input b
Input t
Input n
Input funcin
c.
Tomar i = i + 1
d.
function y = biseccion1()
%pedir las variables - informacin
al usuario
a = input('Ingresa el valor de a: ')
b = input('Ingresa el valor de b: ')
t = input('Ingresa valor de tolerancia:
')
n = input('Ingresa numer max. de
iteraciones: ')
funcion = input('Ingresa la funcion: ')
f = inline(funcion);
i = 1;
while i<=n
p=(a + (b-a)/2);
%p es el punto medio
if (f(p) == 0) | (((b-a)/2) <t)
%para detener el ciclo entonces i
tiene que ser n+1
i=n+1
disp (p)
end
i = i+1;
if (f(a)*f(p))>0
a=p;
else
b=p;
end
disp('el metodo fracaso despues de no
iteraciones = ')
disp (p)
end
end
V. RESULTADOS
VI. DISCUSIN
VII. CONCLUSIN
En esta prctica pudimos ver la utilidad que tienen ambos
mtodos, aunque nos enfocamos principalmente en el
algoritmo de biseccin.
REFERENCIAS
[1]
https://books.google.com.mx/books?id=j0rY3D9fx0C&pg=PA1&dq=bisection+method+history&hl=es&sa=X&ved=0CC
wQ6AEwAmoVChMIouCe_ToxwIVAx6mCh22iwrc#v=onepage&q=bisection%20method%20histor
y&f=false
[2]
https://books.google.com.mx/books?id=mbHBAAAQBAJ&pg=PA251&dq=bisection+method&hl=es&sa=X&ve
d=0CFYQ6AEwB2oVChMIkM33g9_oxwIVJFCmCh0GJwPH#v=onep
age&q=bisection%20method&f=false
[3]
https://books.google.com.mx/books?id=QWubUVGxqkC&pg=PA32&dq=regula+falsi+matlab&hl=es&sa=X&ved=0C
BsQ6AEwAGoVChMIn_PYseHoxwIVxeGmCh0GxA0#v=onepage&q=regula%20falsi%20matlab&f=false