220 likes | 496 Views
Computational Physics. Matlab. With. ( Interpolation and Curve Fitting ). Prof. Muhammad Saeed. Interpolation. Evenly Spaced Data. a) Newton-Gregory Forward Formula. Unevenly Spaced Data. a) Lagrange Polynomials (Cubic). b) Divided Difference. c) Cubic Spline.
E N D
Computational Physics Matlab With ( Interpolation and Curve Fitting ) Prof. Muhammad Saeed
Interpolation Evenly Spaced Data • a) Newton-Gregory Forward Formula M.Sc. Physics
Unevenly Spaced Data • a) Lagrange Polynomials (Cubic) • b) Divided Difference M.Sc. Physics
c) Cubic Spline For condition 1 (Natural Spline): M.Sc. Physics
2. Curve Fitting Least-Squares Approximations y= a Functions to Fit 1) y = mx+c 2) Polynomial 2) y = aebx 3) y = a log(x) + b 4) y = axb 5) 6) y = ax2 +bx M.Sc. Physics
a) Polynomial Fit The Best Fit is determined by the minimum value of M.Sc. Physics
Problem: Weight to Height Ratio of Human Beings Use as mathematical model W=aHb M.Sc. Physics
b) Line Regression M.Sc. Physics
c) Polynomial Regression ‘m’ is the degree of polynomial M.Sc. Physics
End M.Sc. Physics