Computational physics
This presentation is the property of its rightful owner.
Sponsored Links
1 / 10

Computational Physics PowerPoint PPT Presentation


  • 82 Views
  • Uploaded on
  • Presentation posted in: General

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.

Download Presentation

Computational Physics

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Computational physics

Computational Physics

Matlab

With

( Interpolation and Curve Fitting )

Prof. Muhammad Saeed


Computational physics

Interpolation

Evenly Spaced Data

  • a)Newton-Gregory Forward Formula

M.Sc. Physics


Computational physics

Unevenly Spaced Data

  • a)Lagrange Polynomials (Cubic)

  • b)Divided Difference

M.Sc. Physics


Computational physics

  • c)Cubic Spline

For condition 1 (Natural Spline):

M.Sc. Physics


Computational 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


Computational physics

a)Polynomial Fit

The Best Fit is determined by the minimum value of

M.Sc. Physics


Computational physics

Problem:

Weight to Height Ratio of Human Beings

Use

as mathematical model

W=aHb

M.Sc. Physics


Computational physics

b)Line Regression

M.Sc. Physics


Computational physics

c)Polynomial Regression

‘m’ is the degree of polynomial

M.Sc. Physics


Computational physics

End

M.Sc. Physics


  • Login