Sample Programs -1

 

1.To fit a straight line through a given set of data points

data file- fit.data

2. Interpolation of evenly spaced data

3. Newton's divided difference interpolation

data file-data.dat

4.Cubic Spline interpolation

data file- data.dat

cubic.dat

5. Interpolation using the Lagrange scheme

6. A two parameter nonlinear fit using chisquare minimization

data file-non-linear.data

7.To fit a function of the form f(x)=a*g(x) + b*h(x) through the given set of data

data file- gen-linear.data