Documentos de Académico
Documentos de Profesional
Documentos de Cultura
México UAEM
“Facultad de Ingeniería”
Formulario:
“Métodos
Numéricos”
Elaborado por:
Número Máquina
… 21202−12−2 ….
0 1 1 0 0 0 0 1 0 1 1 0 1 0 0 0 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0
Exponente o Carácter Mantisa (parte decimal)
Tipos de Errores
Error absoluto Error Relativo Error Porcentual
𝑒𝑎 = |𝑥i − 𝑥i−1| 𝑥i − 𝑥i−1 𝑒% = 𝑒𝑟 ∙ 100
𝑒𝑟 = |
𝑥1 |
la raíz
ƒ(𝑎) ∙ ƒ(𝑥i) < 0 ⟹ 𝑥i ∈ [𝑎, 𝑥i] Ajuste de una Línea Recta (Regresión Lineal)
ƒ(𝑎) ∙ ƒ(𝑥i) > 0 ⟹ 𝑥i ∈ [𝑥i, 𝑏] 𝑦 = 𝑎0 + 𝑎1𝑥 + 𝑒
ƒ(𝑎) ∙ ƒ(𝑥i) = 0 ⟹ 𝑥ies la solución
- Ecuaciones Normales
4. Estimar el error 𝑛 ∑ 𝑥i𝑦i − ∑ 𝑥i ∑ 𝑦i
𝑎 =
𝑒𝑟 = s donde s es una tolerancia 1
𝑛 ∑ 𝑥i2 − ( ∑ 𝑥i)2
preestablecida 𝑎0 = 𝑦̅ − 𝑎1 𝑥̅ (promedio)
Algoritmo del Método de la Regla Falsa (falsa - Error estándar del estimado (Desviación
posición, regula falsi) estándar)
𝑆𝑟
1. Verificar que la función sea ffi y 𝑆𝑦⁄𝑥 = √
𝑛−2
continua en[𝑎, 𝑏] 𝑛
ƒ(𝑎) ∙ ƒ(𝑏) < 0
𝑆𝑟 = ∑(𝑦i − 𝑎0 − 𝑎1𝑥i)2
2. Obtener la aproximación de la raíz mediante i=1
𝑛
ƒ(𝑏)(𝑎 − 𝑏) 𝑆 = ∑(𝑦 − 𝑦̅)2
𝑥i = 𝑏 − [ ] 𝑡 i
ƒ(𝑎)− ƒ(𝑏) i=1
i = iteracion actual
- Coeficiente de Determinación
3. Determinar en que subintervalo se encuentra
𝑆𝑡 − 𝑆𝑟
la raíz 𝑟 2 = 𝑆𝑡
ƒ(𝑎) ∙ ƒ(𝑥i) < 0 ⟹ 𝑥i ∈ [𝑎, 𝑥i]
ƒ(𝑎) ∙ ƒ(𝑥i) > 0 ⟹ 𝑥i ∈ [𝑥i, 𝑏]
ƒ(𝑎) ∙ ƒ(𝑥i) = 0 ⟹ 𝑥ies la solución
- Coeficiente de Correlación
4. Estimar el error 𝑟, (= √𝑟2)
- Ecuaciones Normales
(𝑛)𝑎0 + (∑ 𝑥i) 𝑎1 + (∑ 𝑥i2) 𝑎2 = ∑ 𝑦i
𝑥i2𝑦i
- Error estándar
𝑆𝑟
𝑆𝑦⁄𝑥 = √
𝑛 − (𝑚 + 1)
𝑛
𝑆𝑡 = ∑(𝑦i − 𝑦̅)2
i=1
𝖥 𝑛 ∑ 𝑎0
𝑥1i ∑ 1ﻟ 1 𝑦 ∑ ﻟi 1
𝑥2i
I II I I I
I∑2𝑥1i ∑ ∑ 𝑥1i𝑥2iI 𝑎1 ∑ 𝑥1i𝑦i
𝑥1i
=
II II❪I I
❵ ❪ ❵
∑ 𝑥2i ∑ 𝑥1i𝑥2i ∑ 𝑥2i2 I I
∑ 𝑥2i 𝑦i
[ ] 𝗅𝑎2 𝖩 𝗅 𝖩
- Error Estandar
𝑆𝑟
𝑆𝑦⁄𝑥 = √
𝑛 − (𝑚 + 1)
𝑚 = número de variables independientes
𝑛 = número de la muestra
- Ecuaciones Normales
0 1
𝑎0 ∑ (ln 𝑥i) + 𝑎1 ∑ (ln 𝑥i) = ∑(ln 𝑦i)
1 2
𝑎0 ∑ (ln 𝑥i) + 𝑎1 ∑ (ln 𝑥i) = ∑(ln 𝑦i) (ln 𝑥i)
Interpolación
Polinomio de Taylor
´( )(
( )
ƒ´´(𝑥0) ƒ𝑛(𝑥0) )𝑛
) ( (
𝑃 )2
ƒ 𝑛(𝑥) = ƒ 𝑥0 + 𝑥0 𝑥 − 𝑥0 + 𝑥
𝑥0− +
+⋯ 𝑛!
𝑥 − 𝑥0
2!
Interpolación de LaGrange
Este polinomio está dado por:
𝑃(𝑥) = ƒ(𝑥0)𝐿𝑛,0(𝑥) + ƒ(𝑥1)𝐿𝑛,1(𝑥) + ⋯ + ƒ(𝑥𝑛)𝐿𝑛,𝑛(𝑥)
donde:
(𝑥 − 𝑥0)(𝑥 − 𝑥1)(𝑥 − 𝑥2) … (𝑥 − 𝑥𝑛)
𝐿𝑛,𝑘 (𝑥) = (𝑥𝑘 − 𝑥0)(𝑥 𝑘 − 𝑥1)(𝑥𝑘 − 𝑥2) … (𝑥𝑘 − 𝑥𝑘)
𝑛
(𝑥 − 𝑥 )
0
𝖦 (𝑥𝑘 − 𝑥i)
i=0
Interpolación de Hermite
𝑛 𝑛
𝑃𝑛(𝑥) = 𝑎0 + 𝑎1(𝑥 − 𝑥0) + 𝑎2(𝑥 − 𝑥0)(𝑥 − 𝑥1) + ⋯ + 𝑎𝑛(𝑥 − 𝑥0)(𝑥 − 𝑥1) … (𝑥 − 𝑥𝑛−1)
𝑎 = ƒ(𝑥1) − ƒ(𝑥0)
ƒ[𝑥 ,𝑥 ]=
1 0 1
𝑥1 − 𝑥0
𝑥i 𝑃i
𝑥0 𝑃0 = 50,0
𝑥1 𝑃1 = 51,0 𝑃0,1 = 51,1
𝑥2 𝑃2 = 52,0 𝑃1,2 = 52,1 𝑃0,1,2 = 52,2
𝑥3 𝑃3 = 53,0 𝑃2,3 = 53,1 𝑃1,2,3 = 53,2 𝑃0,1,2,3 = 53,3
𝑥4 𝑃4 = 54,0 𝑃3,4 = 54,1 𝑃2,3,4 = 54,2 𝑃1,2,3,4 = 54,3 𝑃0,1,2,3,4 = 54,4
(𝑥 − 𝑥i−j)𝑄i,j−1 − (𝑥 − 𝑥i−j)𝑄i−1,j−1
5i,j = 𝑥i − 𝑥i−j
Criterio de paro:
Regla de 𝑏 ℎ ℎ5 𝑏−𝑎
Simpson ∫ ƒ(𝑥)𝑑𝑥 = [ƒ(𝑥0) + 4ƒ(𝑥1) + ƒ(𝑥2)] − ƒ𝐼𝑉(s) ℎ= 2
1⁄ 𝑎 3 90 𝑥0 = 𝑎
3 sc(𝑎, 𝑏)
𝑥1 = 𝑥0 + ℎ
𝑥2 = 𝑏
𝑏
Regla de 3ℎ 3ℎ5
𝑏−𝑎
Simpson ∫ ƒ(𝑥)𝑑𝑥 = [ƒ(𝑥0) + 3ƒ(𝑥1) + 3ƒ(𝑥2) + ƒ(𝑥3)] − ƒ𝑉(s) ℎ= 3
𝑎 8 80
3⁄ 𝑥0 < s < 𝑥3 𝑥0 = 𝑎
8 𝑥1 = 𝑥0 + ℎ
𝑥2 = 𝑥0 + 2ℎ
𝑥3 = 𝑏
𝑏
Regla de Boole 2ℎ
[7ƒ(𝑥0) + 32ƒ(𝑥1) + 12ƒ(𝑥2) + 32ƒ(𝑥3) + 7ƒ(𝑥4)]
𝑏−𝑎
∫ ƒ(𝑥)𝑑𝑥 = ℎ= 4
𝑎 45
3ℎ5 𝑉 𝑥0 = 𝑎
− ƒ (s) 𝑥1 = 𝑥0 + ℎ
80
𝑥0 < s < 𝑥4 𝑥2 = 𝑥0 + 2ℎ
𝑥3 = 𝑥0 + 3ℎ
𝑥4 = 𝑏
𝑏 ( ) 1 (𝑏 − 𝑎)𝑡 + (𝑏 + 𝑎) (𝑏 − 𝑎)
∫
( ƒ 𝑥 𝑑𝑥 = ∫ ƒ
𝑎 −1
𝑛
1
∫ 𝑅(𝑥)𝑑𝑥 = ∑ 𝑐i𝑅(𝑥)
−1 i=1
Diferenciación Numérica
Nombre Fórmula1 ℎ
2 puntos hacia adelante ƒ´(𝑥 ) = [ƒ(𝑥 + ℎ) − ƒ(𝑥 )] − ƒ´´(s)
0 0 0
ℎ1 2 ℎ
3 puntos hacia adelante ( ) [ ( ) ( ) ] 2
ƒ´ 𝑥0 = 1 −3ƒ 𝑥0 + 4ƒ 𝑥0 + ℎ − ƒ(𝑥 0 + 2ℎ) − ƒ´´(s)
2ℎ ℎ 3
3 puntos centrada ( ) [ ( ) ] 2
ƒ´ 𝑥 = ƒ 𝑥0 + ℎ − ƒ(𝑥0 − ℎ) − ƒ´´(s)
2ℎ 1 6 ℎ
5 puntos centrada ( ) [ ( ) ( ) ( ) ] 4 (5)
ƒ´ 𝑥0 = 1 ƒ 𝑥0 − 2ℎ − 8ƒ 𝑥0 − ℎ + 8ƒ 𝑥0 + ℎ − ƒ(𝑥0 + 2ℎ) − ƒ (s)
ℎ
12ℎ 30
5 puntos hacia adelante ( ) [ ( ) ( ) ( ) ( ) ( )] 4 (5)
ƒ´ 𝑥0 =
1 −25ƒ 𝑥0 + 48ƒ 𝑥0 + ℎ − 36ƒ 𝑥0 + 2ℎ + 16 𝑥0 + 3ℎ − 3 𝑥0 + 4ℎ − 5 ƒ
12ℎ
(s)
3 puntos hacia atrás ƒ´(𝑥 ) = [3ƒ(𝑥 ) − 4ƒ(𝑥 − ℎ) + ƒ(𝑥 − 2ℎ)]
0 0 0 0
1
2ℎ
5 puntos hacia atrás ƒ´(𝑥 ) = [25ƒ(𝑥 ) − 48ƒ(𝑥 − ℎ) + 36ƒ(𝑥 − 2ℎ) − 16ƒ(𝑥 + 3ℎ) + 3ƒ(𝑥 − 4ℎ)]
0 0 0 0 0 0
12ℎ
Nombre Fórmula1
3 puntos centrada (𝑛 = 2) ƒ′′(𝑥 ) = [ƒ(𝑥 − ℎ) − 2ƒ(𝑥 ) + ƒ(𝑥 + ℎ)] + 𝑂[ℎ2]
0 0 0 0
1ℎ2
3 puntos hacia adelante (𝑛 = 2) ƒ′′(𝑥 ) = [ƒ(𝑥 ) − 2ƒ(𝑥 + ℎ) + ƒ(𝑥 + 2ℎ)] + 𝑂[ℎ]
0 0 0 0
12
ℎ
4 puntos hacia adelante (𝑛 = 2) ƒ′′(𝑥 ) = [2ƒ(𝑥 ) − 5ƒ(𝑥 + ℎ) + 4ƒ(𝑥 + 2ℎ) − ƒ(𝑥 + 3ℎ)] + 𝑂[ℎ2]
0 0 0 0 0
ℎ21
5 puntos centrada (𝑛 = 2) ƒ′′(𝑥 ) = [−ƒ(𝑥 − 2ℎ) + 16ƒ(𝑥 − ℎ) − 30ƒ(𝑥 ) + 16ƒ(𝑥 + ℎ) − ƒ(𝑥 + 2ℎ)]
0 0 0 0 0 0
12ℎ2
+ 𝑂[ℎ4]
1
4 puntos hacia adelante(𝑛 = 3) ƒ′′′(𝑥 ) = [−ƒ(𝑥 ) + 3ƒ(𝑥 + ℎ) − 3ƒ(𝑥 + 2ℎ) + ƒ(𝑥 + 3ℎ)] + 𝑂[ℎ]
0 0 0 0 0
ℎ13
5 puntos centrada (𝑛 = 3) ƒ′′′(𝑥 ) = [−ƒ(𝑥 − 2ℎ) + 2ƒ(𝑥 − ℎ) − 2ƒ(𝑥 ) + ƒ(𝑥 + 2ℎ)] + 𝑂[ℎ2]
0 0 0 0+ℎ 0
12ℎ3
5 puntos hacia adelante (𝑛 = 4) ƒ𝐼𝑉(𝑥 ) = [ƒ(𝑥 ) − 4ƒ(𝑥 + ℎ) + 6ƒ(𝑥 + 2ℎ) − 4ƒ(𝑥 + 3ℎ) + ƒ(𝑥 + 4ℎ)] + 𝑂[ℎ]
0 0 0 0 0 0
1ℎ4
5 puntos centrada (𝑛 = 4) ƒ𝐼𝑉(𝑥 ) = [ƒ(𝑥 − 2ℎ) − 4ƒ(𝑥 − ℎ) + 6ƒ(𝑥 ) − 4ƒ(𝑥 + ℎ) + ƒ(𝑥 + 2ℎ)] + 𝑂[ℎ2]
0 0 0 0 0 0
ℎ4
Extrapolación de Richardson
ℎ
4j−1𝑁j−1 ( 2 ) − 𝑁j−1(ℎ)
𝑁j (ℎ) =
4j−1 − 1