A22 Sayson Ce50p 2 La2 Excel Solution

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 6

Ma. Angelica M.

Sayson
CE50P-2/A22

Laboratory Activity 2: Polynomial Interpolation

QUADRATIC APPROXIMATION
t v(t)
2 7.5
4.5 7.5
5.5 6
7 5

Direct Method Newton's Divided Difference Method

1 4.5 20.25 7.5 xi f(xi)


1 5.5 30.25 6 4.5 7.5
1 7 49 5 5.5 6
7 5
1 4.5 20.25 7.5
0 -1 -10 1.5
0 -2.5 -28.75 2.5

1 4.5 20.25 7.5


0 1 10 -1.5 at t = 3s
0 -2.5 -28.75 2.5 v(3) = 12.0000

1 4.5 20.25 7.5


0 1 10 -1.5
0 0 -3.75 -1.25

1 4.5 20.25 7.5


0 1 10 -1.5
0 0 1 0.3333

1 0 -24.75 14.25
0 1 10 -1.5
0 0 1 0.3333

1 0 0 22.5
0 1 0 -4.8333
0 0 1 0.3333

at t = 3s
v(3) = 12.0000
fference Method Lagrange Method

1st Div Diff 2nd Div Diff xi x fi L0 L1


4.5 3 7.5 4 -4
-1.5 5.5 3 6 1.4545 -0.7143
-0.6667 0.3333 7 3 5 0.1837 #DIV/0!
L2 L0*f0 L1*f1 L2*f2 f(x)
1 30 -24 5 12
0.2597 8.7273 -3.5714 0 5.4156
#DIV/0! 0.9183673 #DIV/0! #DIV/0! #DIV/0!
CUBIC APPROXIMATION

Newton's Divided Difference Method Lagrange Method

xi f(xi) 1st Div Diff2nd Div Dif3rd Div Diff xi


2 7.5 t0 2
4.5 7.5 0 t1 4.5
5.5 6 -1.5 -0.4286 t2 5.5
7 5 -0.666667 0.3333 0.1524 t3 7

at t = 3s
v(3) = 8.4286
x fi L0 L1 L2 L3 L0*f0 L1*f1 L2*f2 L3*f3
3 7.5 0.3429 2.6667 -1.1429 0.2 2.5714 20 -6.8571 1
3 7.5 2.6667 -1.7143 0.4286 0.08658 20.0000 -10.28571 2.1429 0
3 6 0.7934 #DIV/0! #DIV/0! #DIV/0! 4.7603 #DIV/0! #DIV/0! #DIV/0!
3 5
f(x)
8.3571
5.9286
#DIV/0!

You might also like