LagrangePracTut25
LagrangePracTut25
MAPV211 (2025)
Lagrange Interpolation
10
Data Set
Functional and polynomial values
4 Lagrange Polynomial
Interpolate point t
-2
-1.5 -1 -0.5 0 0.5 1 1.5 2
Independent variable x
The following data set was used obtained from function 5tanh(2x+0.4)+3:
-1.2 -1.82014
-0.4 1.100255
0.9 7.878716
1.5 7.988875
2 7.998493
Type program in Matlab, create data file with 5 paired data and run the program
to generate the results.
Practical in Excel (for submission)
Data Set
j x f(x)
0 1 0.357278
1 4 0.208575
2 6 0.194573
Optional work: Extend your spreadsheet and perform calculations for the data
set of the Matlab section. (Note 5 paired points thus 𝐿𝐿0 , 𝐿𝐿1 , 𝐿𝐿2 , 𝐿𝐿3 and 𝐿𝐿4 )
Tutorial( Tuesday)
Data Set
j x f(x)
0 1 0.357278
1 4 0.208575
2 6 0.194573