- For the given data points;
- vi
 - construct the divided-difference table by hand
 - vii
 - run the MATLAB code (http://siber.cankaya.edu.tr/ozdogan/NumericalComputations/mfiles/chapter3/newpoly.m newpoly.m) and compare with your table.
- interpolate for 
 
- extrapolate for 
 
 - viii
 - run the MATLAB code (http://siber.cankaya.edu.tr/ozdogan/NumericalComputations/mfiles/chapter3/divDiffTable.m divDiffTable.m)
- interpolate for 
 
- extrapolate for 
 
Hint: Open these m-files with the editor. Then execute the codes according to the first line. Use these outputs to inter/extrapolate (see lecture notes).
 
 
- The MATLAB procedure for polynomial least-squares is polyfit. Study the following example;
 
- For the given data points;
T ( ) | 
R (ohms) | 
| 20.5 | 
765 | 
| 32.7 | 
826 | 
| 51.0 | 
873 | 
| 73.2 | 
942 | 
| 95.7 | 
1032 | 
 
- ix
 - Plot it (such as plot(x,Y,'o')).
 - x
 - The graph suggest a linear relationship.
values for the parameters, 
 and 
, can be obtained from the plot.
 - xi
 - Write a MATLAB code that calculates each summation;
All the summations are from 
 to 
.
 - xii
 - Then it is obtained as
Solving these equations simultaneously gives the values for slope and intercept 
 and 
. Now, we have a function in the form;
 - xiii
 - Plot them (such as plot(x,y,x,Y,'o')).
 
 
Subsections
Cem Ozdogan
2011-12-27