0% found this document useful (0 votes)
9 views7 pages

Tarea Metodos

The document discusses various interpolation methods including linear, quadratic, Newton's, and Lagrange interpolation for estimating the natural logarithm function. It provides calculations for estimated values and relative errors for different points using these methods. Each method is illustrated with specific examples and the corresponding errors are calculated to assess accuracy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views7 pages

Tarea Metodos

The document discusses various interpolation methods including linear, quadratic, Newton's, and Lagrange interpolation for estimating the natural logarithm function. It provides calculations for estimated values and relative errors for different points using these methods. Each method is illustrated with specific examples and the corresponding errors are calculated to assess accuracy.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1.

Interpolación lineal
a) Ln(1) = 0 ; Ln(6) = 1.791759

f ( x 1 ) −f ( x 0 )
f 1 ( x )=f ( xo ) + (x −x 0)
x 1−x 0

X0 = 1 ; f(x0) = Ln(1) = 0
X1 = 6 ; f(x1) = Ln(6) = 1.791759
1.791759−0
f 1 ( 2 ) =0+ ( 2−1 )
6−1

f 1 ( 2 ) =0.3583519

Error relativo = | 0.693147−0.3583519


0.693147 |
x 100 %=48.3 %

b) X0 = 1 ; x1 = 2.5
Ln(1) = 0 ; Ln(2.5) = 0.9162907

f ( x 1 ) −f ( x 0 )
f 1 ( x )=f ( xo ) + (x −x 0)
x 1−x 0

0.9162907−0
f 1 ( 2 ) =0+ ( 2−1 )
2.5−1

f 1 ( 2 ) =0.6108604
Error relativo = |0.693147−0 .6108604
0.693147 |x 100 %=11.87 %

c) X0 = 1 ; x1 = 2.3
Ln(1) = 0 ; Ln(2.3) = 0.8329091

f ( x 1 ) −f ( x 0 )
f 1 ( x )=f ( xo ) + (x −x 0)
x 1−x 0

0.8329091−0
f 1 ( 2 ) =0+ (2−1 )
2.3−1

f 1 ( 2 ) =0.6 406993

Error relativo = |0.693147−0.6 406993


0.693147 |x 100 %=7.57 %
2. Estimar por interpolación cuadrática

X0 = 1 ; f(x0) = 0
X1 = 3; f(x1) = 1.0986122
X2 = 5 ; f(x2) = 1.6094379

b 0=f ( x 0 )=0
f ( x 1 )−f ( x 0 ) 1.0986122−0
b 1= = =0.549306
x 1−x 0 3−1

f ( x 2 )−f (x 1) 1.6094379−1.0986122
b 2= −b 1= −0.549306=−0.146946
x 2−x 1 5−3

Construccion del polinomio:


f 2 ( x )=b 0+b 1 ( x −x 0 )+ b 2 ( x−x 0 ) ( x−x 1 )

f 2 ( x )=0.549306 ( x −1 )−0.146946 ( x−1 ) ( x−3 )

f 2 ( 2 ) =0.549306 ( 2−1 )−0.146946 ( 2−1 ) ( 2−3 ) =0.696252

Error relativo = |0.69 6252−0.6


0.693 147
93147
|x 100 %=0.45 %
3. Interpolacion de Newton

x F(x) = Ln(x)
1 0
4 1.386294
6 1.791759
5 1.6094379
3 1.0986123

Pn ( x )=f ( x 0 ) +f ( x 0 , x 1 ) ( x −x 0 ) + f ( x 0 , x 1 , x 2 ) ( x−x 0 )( x−x 1 ) +…

1.386294−0
f ( x 0 , x 1 )= =0.4620981
4−1

1.791759−1.389294
f ( x 1 , x 2 )= =0. 2027325
6−4

1. 6094 379−1.791759
f ( x 2 , x 3 )= =−0.1823211
5−6

1.0986123−1.6094379
f ( x 3 , x 4 )= =0. 2554128
3−5
0.2027325−0.4620981
f ( x 0 , x 1 , x 2 )= =−0.0518731
6−1

−0.1823211−0.2027325
f ( x 1 , x 2, x 3 )= =−0.3850536
5−4

−0.3850536−(−0.0518731)
f ( x 0 , x 1 , x 2 , x 3 )= =−0.0832951
5−1

−0.0832951−(−0.0518731)
f ( x 0 , x 1 , x 2 , x 3 , x 4 )= =−0.015711
3−1

P4 ( x )=0.4620981( x−1)−0.0518731(x−1)(x−4 )−0.0832951(x−1)(x−4)(x−6)−0.015711(x−

P4 ( 2 )=0.2764655

Error relativo = |0 .693147−0.2764655


0.693147 |x 100 %=60.12 %

4. Interpolacion de Lagrange

x F(x)=Ln(x)
1 0
3 1.0986122
5 1.6094379
3 1.0986122

n
Pn ( x )=∑ f ( xi ) Li ( x )
i=0

n
x−xj
Li ( x )=∏
j=0 xi−xj
j ≠i

Primer orden
x−x 1 x−3
Lo ( x )= =
x 0−x 1 1−3

x−x 0 x−1
L 1 ( x )= =
x 1−x 0 3−1

1.098612∗x−1
P1 ( x ) =
2

1.098612∗2−1
P1 ( 2 )= =0.549306
2

Error relativo = |0.693147−0 0549306


0.693147 |x 100 %=20.74 %
Segundo orden

(x−x 1)(x−x 2) ( x−3)(x−5)


Lo ( x )= =
( x 0−x 1)(x 0−x 2) (1−3)(1−5)

( x−x 0)(x−x 2) ( x−1)(x−5)


L 1 ( x )= =
(x 1−x 0)(x 1−x 2) (3−1)(3−5)

( x−x 0)(x−x 1) (x−1)( x−3)


L 2 ( x )= =
(x 2−x 0)(x 2−x 1) (5−3)(5−1)

P2 ( 2 )=0.622779

Error relativo = |0.693147−0.622779


0.693147 |x 100 %=10.14 %

You might also like