Vous êtes sur la page 1sur 27

Ejercicio

Determine por el metodo de biseccion una aproximacion a la raiz de la funcion en el intervalo [1,2] detenga el proceso iterati
f(x)=x^3 + 4x^2 -10

a=
b=

1
2

No. Iteración

an
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

1
1
1.25
1.25
1.3125
1.34375
1.359375
1.359375
1.36328125
1.36328125
1.36425781
1.36474609
1.36499023
1.3651123
1.36517334
1.36520386
1.36521912
1.36522675
1.36522675
1.36522865
1.36522961
1.36522961
1.36522985
1.36522996
1.36522996
1.36522999
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001

f(a)=
f(b)=
bn
2
1.5
1.5
1.375
1.375
1.375
1.375
1.3671875
1.3671875
1.36523438
1.36523438
1.36523438
1.36523438
1.36523438
1.36523438
1.36523438
1.36523438
1.36523438
1.36523056
1.36523056
1.36523056
1.36523008
1.36523008
1.36523008
1.36523002
1.36523002
1.36523002
1.36523002
1.36523002
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001

-5.000000000000000000
14.000000000000000000
pn

En este intervalo
f(an)

1.500000000000000000
1.250000000000000000
1.375000000000000000
1.312500000000000000
1.343750000000000000
1.359375000000000000
1.367187500000000000
1.363281250000000000
1.365234375000000000
1.364257812500000000
1.364746093750000000
1.364990234375000000
1.365112304687500000
1.365173339843750000
1.365203857421870000
1.365219116210930000
1.365226745605460000
1.365230560302730000
1.365228652954100000
1.365229606628410000
1.365230083465570000
1.365229845046990000
1.365229964256280000
1.365230023860930000
1.365229994058600000
1.365230008959770000
1.365230016410350000
1.365230012685060000
1.365230014547700000
1.365230013616380000
1.365230013150720000
1.365230013383550000
1.365230013499970000
1.365230013441760000
1.365230013412660000

-5
-5
-1.796875
-1.796875
-0.84838867
-0.35098267
-0.09640884
-0.09640884
-0.03214997
-0.03214997
-0.01604669
-0.00798926
-0.0039591
-0.00194366
-0.00093585
-0.00043192
-0.00017995
-5.3963E-05
-5.3963E-05
-2.2466E-05
-6.7174E-06
-6.7174E-06
-2.7803E-06
-8.1176E-07
-8.1176E-07
-3.1962E-07
-7.3556E-08
-7.3556E-08
-1.2039E-08
-1.2039E-08
-1.2039E-08
-4.3492E-09
-5.0439E-10
-5.0439E-10
-5.0439E-10

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001

1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001
1.36523001

1.365230013427210000
1.365230013419930000
1.365230013416290000
1.365230013414480000
1.365230013413570000
1.365230013414020000
1.365230013414250000
1.365230013414130000
1.365230013414080000
1.365230013414110000
1.365230013414090000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000
1.365230013414100000

-2.3789E-11
-2.3789E-11
-2.3789E-11
-2.3789E-11
-2.3789E-11
-8.7699E-12
-1.2612E-12
-1.2612E-12
-1.2612E-12
-3.2152E-13
-3.2152E-13
-8.7041E-14
-8.7041E-14
-2.8422E-14
0
0
0
0
0
0

16210938 0.84838867 -0.3556E-08 4.81E-03 3.79E-04 1.91E-11 ea(%) #VALUE! 9.46E-07 2.1176E-07 1.49E-08 7.9478E-08 -1.2039E-08 1.7251E-07 1.2025E-05 7.43E-01 7.031E-06 1.18E-06 1.03235579 0.63E-06 3.01604669 -0.3404E-09 1.71E-08 8.418E-09 4.16210938 0.77E-07 2.03235579 7.7174E-06 1.1962E-07 -7.13E-02 1.16E-02 3.47E-03 2.53E-09 4.37E-06 2.3492E-09 -5.1568E-06 1.31E-10 4.2] detenga el proceso iterativo cuando el error sea menor de 10^-4 )=x^3 + 4x^2 -10 En este intervalo sí hay una raíz f(bn) 14 2.5682E-10 -2.1568E-06 1.54E-07 4.45E-09 3.91E-06 9.87E-01 1.66E-10 2.375 -1.33E+00 1.09640884 0.76E+00 2.86E-09 9.5682E-10 f(pn) 2.19E-07 5.3789E-11 error aproximado 1.2025E-05 7.0439E-10 1.96E-08 2.05E-05 1.872E-08 3.03235579 -0.872E-08 3.09E+00 4.7251E-07 4.3963E-05 9.2025E-05 7.1568E-06 1.7251E-07 -3.33E-10 1.2025E-05 7.16210938 -0.73E-09 1.49E-05 1.12E-03 5.81E-06 1.58E-02 1.56E-02 7.15E+00 5.3404E-09 3.16210938 0.24E-03 1.38E-07 1.94E-03 4.2025E-05 -0.031E-06 9.2025E-05 7.98E-08 1.alo [1.00017995 -5.031E-06 -2.36E-07 6.7803E-06 -8.0039591 -0.2025E-05 9.3404E-09 3.00043192 -0.2466E-05 -6.82E-08 3.2025E-05 7.44E-04 1.13E-09 .9478E-08 4.22E-04 6.09E-06 5.41E-08 1.10E-05 3.375 0.91E-03 1.00798926 -0.99E-05 3.82E-11 2.88E-04 2.77E-04 4.25E-01 6.03214997 7.71E-01 2.75E-05 8.16210938 0.59E-04 2.796875 0.35098267 -0.7251E-07 1.031E-06 9.375 2.73E-06 4.53E-05 7.25E-02 3.418E-09 4.3404E-09 -4.9478E-08 1.00194366 -0.1568E-06 -2.79E-02 8.00093585 -0.73E-07 1.26E-09 2.40E-04 6.2025E-05 7.16E-10 5.95E-03 9.2025E-05 7.

1651E-10 9.494E-12 6.64E-12 1.11E-15 3.494E-12 6.07E-09 5.46E-11 7.04E-12 5.164E-13 6.6287E-11 6.00E+00 0.66E-10 1.8422E-14 0 0 0 0 0 0 0 1.55E-15 1.00E+00 0.00E+00 0.00E+00 0.33E-10 2.82E-12 9.42E-14 7.78E-15 0.4744E-13 3.0198E-14 -2.2152E-13 1.27E-13 1.2492E-12 2.4744E-13 -8.164E-13 -3.00E+00 0.4744E-13 1.08E-12 1.2612E-12 2.67E-11 8.0198E-14 3.33E-11 1.164E-13 1.00E+00 Solución absoluta (lo máximo que calcul .20E-13 2.28E-12 3.0198E-14 0 0 0 0 0 0 2.68E-14 2.2492E-12 6.66E-11 3.1651E-10 9.55E-13 2.60E-13 1.7699E-12 -1.6362E-11 3.00E+00 0.30E-13 0.84E-14 1.00E+00 0.00E+00 0.14E-13 5.6287E-11 6.33E-10 6.00E+00 0.16E-12 2.00E+00 0.7041E-14 3.00E+00 1.2492E-12 -8.5682E-10 2.2492E-12 6.09E-13 4.4.6362E-11 3.33E-12 4.

.

a (lo máximo que calcula excel) .

375 1.359375 .5 1.3125 1. Iteración an 1 2 3 4 5 6 X4 0 ############################## 0 f(a)= f(b)= bn 1 1 1.25 1.375 1.25 1.3125 1.34375 1.375 1.25 1. Iteraciones= No.500000000000 1.34375 -5 14 pn 2 1.5 1.METODO DE BISECCION PARA FUNCIO Coeficientes del polinomio X7 X6 0 X5 a= b= 1 2 es 1.0E-09 30 No.375 1.

.

125 0.350982666 -0.25 0.796875 -1.796875 -0.015625 .096408844 0.848388672 -0.375 0.162109375 error aproximado 2.350982666 f(pn) 14 2.03125 0.796875 0.848388672 -0.162109375 0.375 2.162109375 -0.375 -1.0625 0.162109375 0.METODO DE BISECCION PARA FUNCIONES POLINOMICAS X3 X2 X1 1 X0 4 0 -10 En este intervalo sí hay una raíz f(an) f(bn) -5 -5 -1.

.

149425287 .El error más grande será entonces: (b-a)/2^n n=iteración b-a= intervalo de la función Entonces pues: (b-a)/2^n = es Se despeja n para obtener las iteraciones en B11 n=Ln[(b-a)/es]/Ln2 ea(%) 20 9.761904762 2.325581395 1.090909091 4.

0E-14 50 No.METODO DE BISECCION PARA FUNCIO Coeficientes del polinomio X7 X6 -3 X5 a= b= -3 5 es 1. Iteraciones= No. Iteración f(a)= f(b)= an 1 2 X4 6 ############################## 0 4696 -217752 bn -3 5 pn 5 0 1 2.5 .

.

50E+00 .492188 1.METODO DE BISECCION PARA FUNCIONES POLINOMICAS X3 X2 X1 3 X0 0 0 -2 En este intervalo sí hay una raíz f(an) f(bn) 4696 -217752 f(pn) -217752 -2 error aproximado 0 -1356.

.

El error más grande será entonces: (b-a)/2^n n=iteración b-a= intervalo de la función Entonces pues: (b-a)/2^n = es Se despeja n para obtener las iteraciones en B11 n=Ln[(b-a)/es]/Ln2 ea(%) 6.00E+01 .

.

473618030548 2.47265625 2.473617554 2.473621368408 2.473617554 2.47361827 2.473510742 2.484375 2.473618268967 2.47362137 2.473618155345 .47361851 2.5 2.473618031 2.473617553711 2.473618149757 2.47361827 2.47363281 2.473602294922 2.5 2.METODO DE BISECCION PARA FUNCION a= b= -2 6 es 1.473617554 2.473144531250 2.473619461060 2.4765625 2.472656250000 2.473510742188 2.473625183105 2.47361815 2.473388671875 2.375 2.468750000000 2.473618157208 2.47363281 2.5 2.473618153 f(a)= f(b)= bn 6 6 4 3 2.47361818 2.46875 2.473618164659 2.473388672 2.47361946 2.47363281 2.47363281 2.473617554 2.46875 2.460425946 11.47361851 2.437500000000 2.5 2.473617554 2.47361816 2.476562500000 2.4375 2.47363281 2.4765625 2.0E-07 27 No.484375000000 2.473618507385 2.473571777 2.47361815 2.47361816 -0.55633695 pn 2.473618031 2.47361815 2.47363281 2.250000000000 2.473144531 2.47362518 2.473632812500 2.25 2.47460938 2.473618209362 2.47265625 2.474609375000 2.47361815 2.473618153483 2.473602295 2.46875 2. Iteraciones= No.47363281 2.47361816 2.000000000000 4. Iteración an 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 -2 2 2 2 2 2.500000000000 2.375000000000 2.47265625 2.47361821 2.473618179560 2.47361815 2.5 2.000000000000 3.000000000000 2.473571777344 2.

.

066594931 0.946745746 2.380591467 -0.083601186 -0.13E-02 1.73E-09 1.011777719 -0.207767432 -0.00E-01 2.4695E-06 -1.86341E-05 -1.011777719 -0.38E-07 1.91E-03 1.86341E-05 -1.88E-04 2.000112959 -3.72624E-07 1.54E-07 4.002339786 -0.460425946 -0.011777719 0.56966E-05 3.27446E-07 5.56966E-05 1.25E-02 3.00241758 3.71134E-05 7.4695E-06 -3.56966E-05 3.56966E-05 3.380591467 -0.56966E-05 3.72624E-07 2.10E-05 3.77E-07 2.96E-08 2.08086E-07 -3.82188E-06 3.4695E-06 -1.000558774 -0.0265886 0.007200553 0.77E-04 4.METODO DE BISECCION PARA FUNCIONES NO POLINOMICAS En este intervalo sí hay una raíz f(an) f(bn) -0.460425946 7.65754E-09 -4.207767432 -0.12075E-09 2.000112959 -3.81E-03 3.002339786 -0.00241758 3.002339786 0.65754E-09 f(pn) 11.77311E-08 -1.05E-05 1.4695E-06 1.00E+00 1.00E+00 5.0265886 0.4695E-06 -1.22E-04 6.98E-08 1.153322317 0.95E-03 9.63E-06 3.16048E-10 -8.19E-07 5.56966E-05 3.53334E-07 -3.45E-09 3.066594931 0.16048E-10 error aproximado -0.4695E-06 -1.460425946 -0.71134E-05 7.91E-06 9.53334E-07 2.82188E-06 3.000261589 -0.77311E-08 -1.85632E-08 4.000558774 -0.08086E-07 -1.50E-01 1.55633695 7.56E-02 7.77311E-08 -8.001152845 -0.25E-01 6.17618E-06 8.48576E-08 1.49E-08 7.17618E-06 8.81E-06 1.007200553 0.011777719 -0.85632E-08 4.55633695 11.77311E-08 1.56966E-05 3.066594931 0.001152845 -0.066594931 0.007200553 -0.48576E-08 1.083601186 -0.16048E-10 4.08086E-07 2.066594931 -0.56966E-05 -0.460425946 -0.72624E-07 -1.460425946 -0.946745746 2.27446E-07 5.53E-05 7.77311E-08 -1.460425946 -0.53334E-07 8.44E-04 1.066594931 0.002339786 -0.153322317 0.77311E-08 -1.000261589 -0.86E-09 .

.

89E-02 3.26E+00 2.29E-01 3.41E-06 1.20E-06 6.f(x)=1/2+(1/4)x^2-xSen(x)-1/2(Cos(2.97E-02 9.93E-05 9.95E-02 1.53E-08 .17E-04 3.54E-04 7.02E-07 3.87E-03 4.86E-05 1.5x) ea(%) 5.47E-03 1.00E+01 3.51E-07 7.71E-05 3.00E+01 1.08E-04 1.94E-03 2.82E-06 2.27E+00 6.23E-03 6.56E+00 1.15E-01 1.58E-01 7.64E-06 4.01E-07 1.33E+01 2.11E+01 5.

5 -1.4777832 -1.477857589722 -1.477856397629 -1.477844238281 -1.5 -1.47785759 -1.47785187 -1.478515625000 -1.4778595 -1.477856159210 -1.477855682373 -1.477856632002 -1.477539062500 -1.47785664 -1.47785663 -0.47790527 -1.METODO DE BISECCION PARA FUNCION a= b= -2 -1 es 1.47785568 -1.47785663 -1.4778595 -1.47785661 -1.4375 -1.477856628597 -1.25 -1.47784424 -1.477856636047 -1.477856606245 -1.47785663 -1.477856631973 -1.468750000000 -1.47785663 -1.477856632016 .47785664 -1.477856576443 -1.477856632089 -1.47785664 -1.47785663 -1.47785663 -1.437500000000 -1.477859497070 -1.0E-07 24 No.4765625 -1.47851563 -1.484375 -1.47785664 -1. Iteraciones= No.47785663 -1.47785663 -1.4765625 -1.477856632031 -1.47785658 -1.309100823 pn -1.478027343750 -1.47851563 -1.477856632322 -1.47785663 -1.47785664 -1.47753906 -1.47785568 -1.47785663 -1.477783203125 -1.47802734 -1.484375 -1.47785664 -1.46875 -1.5 -1.477856631391 -1.47785663 -1.47790527 -1.47784424 -1.477856516838 -1.477856621146 -1.375 -1.460425946 0.46875 -1.47753906 -1.375000000000 -1.480468750000 -1.48046875 -1.5 -1.4778595 -1.47785663 -1.477851867676 -1.476562500000 -1.47785664 -1.47785662 -1.5 -1.484375000000 -1.47785568 -1.47785616 -1.477856631856 -1.4765625 -1.47785663 -1.47785663 -1.47785652 -1.47785663 f(a)= f(b)= bn -1 -1 -1.500000000000 -1.47787476 -1.47785664 -1.477905273438 -1. Iteración an 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 -2 -1.4778564 -1.477874755859 -1.47785663 -1.250000000000 -1.477856630459 -1.47802734 -1.47785663 -1.4777832 -1.47784424 -1.

.

041606669 0.77E-07 2.46214E-07 1.0098E-06 -3.25E-02 3.01023E-12 -1.24778E-09 -3.83678E-08 2.000692471 -0.44065E-10 1.71358E-05 7.METODO DE BISECCION PARA FUNCIONES NO POLINOMICAS En este intervalo sí hay una raíz f(an) f(bn) -0.0061E-06 -4.96677E-07 2.5488E-10 3.96E-08 2.001358771 -0.19E-07 5.30197E-05 -1.71358E-05 -5.01023E-12 error aproximado -0.86E-09 9.34304E-10 -8.34304E-10 1.91E-03 1.0098E-06 -1.38E-07 1.44065E-10 1.204325398 0.97116E-11 -2.66E-10 2.16E-10 5.54E-07 4.97116E-11 -8.30197E-05 5.5488E-10 -8.023462801 -0.10996E-05 1.25E-01 6.0098E-06 5.14061E-08 3.000692471 -0.000692471 0.706E-08 1.00686586 -0.57917E-09 1.24778E-09 -4.49E-08 7.81E-06 1.00499E-06 9.13E-02 1.0098E-06 -3.24778E-09 -4.44E-04 1.81E-03 3.24778E-09 4.309100823 0.90395E-05 -3.45E-09 3.10219727 0.204325398 0.88E-04 2.460425946 -0.00686586 -0.46E-11 .00686586 0.30197E-05 1.041606669 0.32765E-11 2.33E-10 1.20983E-07 5.000179348 7.001358771 0.95E-03 9.34304E-10 -3.009529536 0.002747027 -0.023462801 0.73E-09 1.000179348 -5.34304E-10 -3.97116E-11 3.000179348 -0.10996E-05 -5.97601E-07 -1.000333567 -0.85637E-11 f(pn) 0.023462801 -0.57917E-09 3.25841E-11 2.10219727 0.98E-08 1.53E-05 7.62243E-09 6.023462801 -0.023462801 -0.34304E-10 -3.002747027 -0.0061E-06 -4.82E-11 2.56E-02 7.90395E-05 -3.023462801 -0.25841E-11 3.91E-06 9.25841E-11 -2.91E-11 1.83678E-08 2.50E-01 1.05E-05 1.20983E-07 5.706E-08 1.96677E-07 2.85637E-11 -2.97601E-07 9.46214E-07 1.31E-10 4.77E-04 4.009529536 -0.85637E-11 2.001358771 0.62243E-09 6.001358771 0.24778E-09 -4.309100823 0.71358E-05 1.14061E-08 3.97601E-07 9.57917E-09 -3.24778E-09 -4.24778E-09 -4.009529536 0.24778E-09 -4.22E-04 6.5488E-10 1.10996E-05 -1.000333567 7.97601E-07 4.63E-06 3.10E-05 3.000333567 0.30197E-05 1.00499E-06 9.24778E-09 -4.

.

03E-03 5.64E-01 1.61E-02 3.58E-08 7.15E-08 1.f(x)=1/2+(1/4)x^2-xSen(x)-1/2(Cos(2.02E-06 1.88E-09 3.45E-05 3.29E-04 6.26E-07 6.09E+00 4.94E-09 1.30E-02 1.26E-03 4.05E+00 5.03E-06 2.16E-04 2.61E-05 8.32E-01 6.58E-04 1.13E+00 1.29E-01 2.35E+00 2.97E-09 9.07E-06 4.13E-03 2.65E-02 8.52E-07 1.06E-03 1.04E-07 2.23E-05 1.30E-08 3.5x) ea(%) 2.00E+01 9.85E-10 .01E-06 5.