You are on page 1of 9

ASSIGNMENT 5

by EMCS 257
May Pyae Phyo Thu

No.1 (a) Find an given value of the following matrices by the method of Newton interpolation polynomial:

3 2 1
2 2 1
1 1 1

i= 0 λ=
3 2 1 3 2
2 2 1 2 2
1 1 1 1 1

f0= 1.0000

i= 1 λ=
2.5 2 1 2.5 2
2 1.5 1 2 1.5
1 1 0.5 1 1

f1= -0.1250

i= 2 λ=
2 2 1 2 2
2 1 1 2 1
1 1 0 1 1

f2= 1.0000

i= 3 λ=
1.5 2 1 1.5 2
2 0.5 1 2 0.5
1 1 -0.5 1 1

f3= 3.6250

i λ fi ∆fi ∆2fi ∆3fi


0 0 1.0000 -1.1250 2.2500 -0.7500
1 0.5 -0.1250 1.1250 1.5000
2 1 1.0000 2.6250
3 1.5 3.6250

Newton forward interpolation formula:

g (λ) = 1 + (-1.125)s + 2.25/2s(s-1) + (-0.75/6)s(s-1)(s-2)

.
0

0.5

1.5
No.1 (b) Find an given value of the following matrices by the method of Newton interpolation polynomial:

3 2 1
2 1 1
1 1 1

i= 0 λ=
3 2 1 3 2
2 1 1 2 1
1 1 1 1 1

f0= -1

i= 1 λ=
2.5 2 1 2.5 2
2 0.5 1 2 0.5
1 1 0.5 1 1

f1= -0.375

i= 2 λ=
2 2 1 2 2
2 0 1 2 0
1 1 0 1 1

f2= 2

i= 3 λ=
1.5 2 1 1.5 2
2 -0.5 1 2 -0.5
1 1 -0.5 1 1

f3= 5.3750

i λ fi ∆fi ∆2fi ∆3fi


0 0 -1.0000 0.6250 1.7500 -0.7500
1 0.5 -0.3750 2.3750 1.0000
2 1 2.0000 3.3750
3 1.5 5.3750
Newton forward interpolation formula:
g (λ) = -1 +0.625s + 1.75/2s(s-1) + (-0.75/6)s(s-1)(s-2)

.
0

0.5

1.5
No.1 (c) Find an given value of the following matrices by the method of Newton interpolation polynomial:

4 1 2
3 2 1
0 1 2

i= 0 λ=
4 1 2 4 1
3 2 1 3 2
0 1 2 0 1

f0= 12

i= 1 λ=
3.5 1 2 3.5 1
3 1.5 1 3 1.5
0 1 1.5 0 1

f1= 5.875

i= 2 λ=
3 1 2 3 1
3 1 1 3 1
0 1 1 0 1

f2= 3

i= 3 λ=
2.5 1 2 2.5 1
3 0.5 1 3 0.5
0 1 0.5 0 1

f3= 2.625

i λ fi ∆fi ∆2fi ∆3fi


0 0 12.0000 -6.1250 3.2500 -0.7500
1 0.5 5.8750 -2.8750 2.5000
2 1 3.0000 -0.3750
3 1.5 2.6250
Newton forward interpolation formula:
g (λ) = 12 + (-6.125)s + 3.25/2s(s-1) + (-0.75/6)s(s-1)(s-2)

.
0

0.5

1.5

You might also like