Ejercicio Newton Raphson - Secante - Falsa Posicion
Ejercicio Newton Raphson - Secante - Falsa Posicion
Ejercicio Newton Raphson - Secante - Falsa Posicion
Ingeniería Eléctrica
Métodos Numéricos - Marzo 2023 - Agosto 2023
Ing. Walter Dután
METODO DE NEWTON-RAPHSON
d
fp ((x)) ≔ ―― f ((x)) → 4.5 ⋅ cos ((x)) - 4.5
dx
14
10.5
7
3.5
0
-2 -1 0 1 2 3 4 5 6
-3.5
-7
f ((x))
-10.5
-14
-17.5
-21
Valor inicial x0 ≔ 2
f ⎛⎝x0⎞⎠ | x1 - x0 |
Iteración 1 x1 ≔ x0 - ――― = 2.485172 e1 ≔ |――― | ⋅ 100 = 19.5227
fp ⎛⎝x0⎞⎠ | x1 |
f ⎛⎝x1⎞⎠ | x2 - x1 |
Iteración 2 x2 ≔ x1 - ――― = 2.430987 e2 ≔ |――― | ⋅ 100 = 2.2289
fp ⎛⎝x1⎞⎠ | x2 |
f ⎛⎝x2⎞⎠ | x3 - x2 |
Iteración 3 x3 ≔ x2 - ――― = 2.430466 e3 ≔ |――― | ⋅ 100 = 0.0215
fp ⎛⎝x2⎞⎠ | x3 |
f ⎛⎝x3⎞⎠ | x4 - x3 |
Iteración 4 x4 ≔ x3 - ――― = 2.430466 e4 ≔ |――― | ⋅ 100 = 0.000002
fp ⎛⎝x3⎞⎠ | x4 |
METODO DE LA SECANTE
METODO DE LA SECANTE
14
10.5
7
3.5
0
-2 -1 0 1 2 3 4 5 6
-3.5
-7
f ((x))
-10.5
-14
-17.5
-21
solve , y
f ⎛⎝x1⎞⎠ - f ⎛⎝x0⎞⎠ float , 4
y1 ((x)) ≔ y - y0 = ――――― ⎛⎝x - x0⎞⎠ ――― → -7.957 ⋅ x + 17.91
x1 - x0
solve , y
f ⎛⎝x1⎞⎠ - f ⎛⎝x0⎞⎠ float , 4
y2 ((x)) ≔ y - y0 = ――――― ⎛⎝x - x0⎞⎠ ――― → -4.195 ⋅ x + 10.39
x1 - x0
21
17.5
14
10.5
f ((x))
3.5
y1 ((x))
0
0 0.4 0.8 1.2 1.6 2 2.4 2.8 3.2 3.6 4
-3.5
y2 ((x))
-7
-10.5
-14
14
10.5
7
3.5
0
-2 -1 0 1 2 3 4 5 6
-3.5
-7
f ((x))
-10.5
-14
-17.5
-21
Iteración 1
xu ⋅ f ⎛⎝xl⎞⎠ - xl ⋅ f ⎛⎝xu⎞⎠
xl ≔ 2 xu ≔ 3 f ⎛⎝xl⎞⎠ = 3.092 f ⎛⎝xu⎞⎠ = -4.865 xr ≔ ―――――――
f ⎛⎝xl⎞⎠ - f ⎛⎝xu⎞⎠
xl = 2 xu = 3 f ⎛⎝xl⎞⎠ = 3.092 f ⎛⎝xu⎞⎠ = -4.865 xr = 2.3886 f ⎛⎝xr⎞⎠ = 0.329
Iteración 2
xu ⋅ f ⎛⎝xl⎞⎠ - xl ⋅ f ⎛⎝xu⎞⎠
xl ≔ xr xu ≔ xu f ⎛⎝xl⎞⎠ = 0.329 f ⎛⎝xu⎞⎠ = -4.865 xr ≔ ―――――――
f ⎛⎝xl⎞⎠ - f ⎛⎝xu⎞⎠
xl = 2.389 xu = 3 f ⎛⎝xl⎞⎠ = 0.329 f ⎛⎝xu⎞⎠ = -4.865 xr = 2.4273 f ⎛⎝xr⎞⎠ = 0.025
| 2.4273 - 2.3886 |
e2 ≔ |―――――| ⋅ 100 = 1.594
| 2.4273 |
Iteración 3
xu ⋅ f ⎛⎝xl⎞⎠ - xl ⋅ f ⎛⎝xu⎞⎠
xl ≔ xr xu ≔ xu f ⎛⎝xl⎞⎠ = 0.025 f ⎛⎝xu⎞⎠ = -4.865 xr ≔ ―――――――
f ⎛⎝xl⎞⎠ - f ⎛⎝xu⎞⎠
xl = 2.427 xu = 3 f ⎛⎝xl⎞⎠ = 0.025 f ⎛⎝xu⎞⎠ = -4.865 xr = 2.4302 f ⎛⎝xr⎞⎠ = 0.002
| 2.4302 - 2.4273 |
e2 ≔ |―――――| ⋅ 100 = 0.119
| 2.4302 |
Iteración 4
xu ⋅ f ⎛⎝xl⎞⎠ - xl ⋅ f ⎛⎝xu⎞⎠
xl ≔ xr xu ≔ xu f ⎛⎝xl⎞⎠ = 0.002 f ⎛⎝xu⎞⎠ = -4.865 xr ≔ ―――――――
f ⎛⎝xl⎞⎠ - f ⎛⎝xu⎞⎠
xl = 2.43 xu = 3 f ⎛⎝xl⎞⎠ = 0.002 f ⎛⎝xu⎞⎠ = -4.865 xr = 2.4304 f ⎛⎝xr⎞⎠ = 1.4 ⋅ 10 -4
| 2.4304 - 2.4302 |
e3 ≔ |―――――| ⋅ 100 = 0.008
| 2.4304 |