Вы находитесь на странице: 1из 1

EJERCICIO DE APLICACIÓN DE INTERPOLACION

Supongamos que tenemos la función tabular sin una función conocida


i 0 1 2 3
F(Xi) -3 0 5 7
Xi 0 1 3 6

a) Determinar la aproximación polinomial de LaGrange usando todos los puntos (función


f (x)).
b) Determinar el valor aproximado de f (x) para x = 1.8
Solución:
Como se sabe la tabla contiene 4 puntos, por ende se deduce a que existe un polinomio
de tercer orden.
P3 ( x)  L0 ( x) f ( x0 )  L1 ( x) f ( x1 )  L2 ( x) f ( x 2 )  L3 ( x) f ( x3 )
P3( x)  L0 ( x)( 3)  L1 ( x)(0)  L2 ( x)(5)  L3 ( x)(7)
( x  x1 )( x  x 2 )( x  x3 ) ( x  1)( x  3)( x  6) ( x  1)( x  3)( x  6)
L0 ( x)   
( x0  x1 )( x0  x 2 )( x0  x3 ) (0  1)(0  3)(0  6)  18
( x  x0 )( x  x 2 )( x  x3 ) ( x  0)( x  3)( x  6) x( x  3)( x  6)
L1 ( x)   
( x1  x0 )( x1  x 2 )( x1  x3 ) (1  0)(1  3)(1  6) 10
( x  x0 )( x  x1 )( x  x3 ) ( x  0)( x  3)( x  6) x( x  1)( x  6)
L2 ( x )   
( x 2  x0 )( x 2  x1 )( x 2  x3 ) (3  0)(3  1)(3  6)  18
( x  x0 )( x  x1 )( x  x 2 ) x( x  1)( x  3) x( x  1)( x  3)
L3 ( x)   
( x 2  x0 )( x3  x1 )( x3  x 2 ) 6 (6  1)(6  3) 90
Operando tenemos la ecuación de la recta:

x 3 x 2 46
P3     x 3
30 30 15
Reemplazando hallamos el valor aproximado de la función cuando x = 1.8

(1.8) 3 (1.8) 2 46
P3 (1.8)     (1.8)  3  2.2176
30 30 15

Вам также может понравиться