Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(7.17)
Queremos que esta parbola pase por tres puntos [x0, f(x0)], [x1, f(x1)] y [x2, f(x2)]. Los
coeficientes de la ecuacin (7.17) se evalan sustituyendo cada uno de esos tres puntos
para dar
f(x0) = a(x0 x2)2 + b(x0 x2) + c
f(x1) = a(x1 x2)2 + b(x1 x2) + c
f(x2) = a(x2 x2)2 + b(x2 x2) + c
(7.18)
(7.19)
(7.20)
(7.21)
(7.22)
f ( x1 ) f ( x 2 )
x1 x 0
f ( x 2 ) f ( x1 )
x 2 x1
Sustituyendo en el sistema:
( h0 h1 )b (h0 h1 ) 2 a h0 0 h1 1
h1b h1 a h1 1
2
1 0
h1 h0
b ah1 1
c f ( x2 )
x3 x 2
2c
b b 2 4ac
x3 x 2
despejando
2c
b b 2 4ac
La gran ventaja de este mtodo es que se pueden localizar tanto las races reales
como las imaginarias.
Hallando el error este ser:
Ea
x3 x 2
100%
x3
Programa
Por ser un mtodo que trabaja de forma lineal, es posible una aplicacin computacional en
forma sencilla, la cual sera:
SubMuller (xr, h, eps, maxit)
x2 = xr
x1 = xr + h*xr
x0 = xr h*xr
Do
iter = iter + 1
h0 = x1 + x0
h1 = x2 x1
d0 = (f(x1)-f(x0))/h0
d1 = (f(x2)-f(x1))/h1
a = (d1 d0)/(h1 + h0)
b = a*h1 +d1
c = f(x2)
rad = sqrt (b*b 4*a*c)
if I b+ rad I > l b - rad l then
den = b + rad
Else
den = b rad
End if
dxr = -2*c/den
xr = x2 + dxr
Print iter, xr
IF (Idxrl<eps*xr or iter>maxit) exit
x0 = x1
x1 = x2
x2 = xr
End do
End Muller
Ejemplo
f ( x) x 3 13 x 12
h = 0,1
x2 = 5 x1 = 5,5 x0 =4,5
Con un anlisis previo, las races son 3, -1 y 4
Solucin
f ( 4,5) 20,625
f (5,5) 82,875
f (5) 48
Calculando
h0 5,5 4,5 1
h1 5 5,5 0,5
82,875 20,625
62,25
5,5 4,5
48 82,875
69,75
5 5,5
69,75 62,25
15
0,5 1
c 48
As
x3 5
2 48
3,9765
62,25 31,544
Y el error estimado
Ea
1,0235
100% 25,74%
x3
Ahora
x2 = 3,9765 x1 = 5 x0 =5,5
xr
Ea %
--
3,9465
25,740
4,0011
0,614
4,0000
0,026
4,0000
0,000