CSE5004 – Solved

$ 29.99
Category:

Description

Lecture 4
Numerical Interpolation / TDMA
Jung-Il Choi
0. Interpolation
β€’ Problem statement
 For given data
π‘₯π‘₯𝑖𝑖, 𝑦𝑦𝑖𝑖 𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀 = 1, … , 𝑛𝑛
determine function 𝑓𝑓: ℝ β†’ ℝ𝑠𝑠𝑠𝑠𝑠𝑠𝑀 𝑀𝑀𝑀𝑑𝑑𝑀𝑀
𝑓𝑓 π‘₯π‘₯𝑖𝑖 = 𝑦𝑦𝑖𝑖 𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀 = 1, … , 𝑛𝑛
 Given a new π‘₯π‘₯βˆ—, we can interpolate its function value 𝑦𝑦(π‘₯π‘₯βˆ—). 𝑦𝑦(π‘₯π‘₯) is interpolating function.
 Example
β€’ Linear interpolation
The estimated point is assumed to lie on the line joining the nearest points to the left and right. Linear interpolation at π‘₯π‘₯ is

π‘₯π‘₯ 2 8
𝑦𝑦 10 2

2 βˆ’ 10
β†’ 𝑦𝑦 5 =10+ 5 βˆ’2 =6
8 βˆ’ 2

β€’ Lagrange interpolation
 Lagrange polynomial interpolation finds a single polynomial, 𝑃𝑃(π‘₯π‘₯).
 As an interpolation function, it should have the property 𝑃𝑃 π‘₯π‘₯𝑖𝑖 = 𝑓𝑓(π‘₯π‘₯𝑖𝑖) for every point in the dataset. It is useful to write them as a linear combination of Lagrange basis polynomials, 𝑙𝑙𝑖𝑖(π‘₯π‘₯)
 And
β€’ Lagrange interpolation
Interpolation result(line-by-line code)
β€’ Lagrange interpolation
Interpolation result(Scipy)

β€’ Bivariate functions

β€’ Linear algebra

Back substitution (forward sweep)

β€’ Example
6 3 9 0
0 2 5 2
0 0 4 3
11 / 17
β€’ Cubic Spline

β€’ Cubic Spline
β€’ Cubic Spline
β†’ π‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘ π‘ π‘€π‘€π‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿ 2π‘šπ‘šπ‘šπ‘šπ‘Ÿπ‘Ÿπ‘Ÿπ‘Ÿ π‘ π‘ π‘šπ‘šπ‘›π‘›π‘ π‘ π‘€π‘€π‘Ÿπ‘Ÿπ‘‘π‘‘π‘€π‘€π‘›π‘›π‘€π‘€π‘ π‘ 

β€’ Cubic Spline
 Free run-out (natural spline):

 Parabolic run-out:

 Periodic:

β€’ Cubic Spline
Interpolation result(line-by-line code)
β€’ Cubic Spline
Interpolation result(line-by-line code)

Q&A Thanks for listening

Reviews

There are no reviews yet.

Be the first to review “CSE5004 – Solved”

Your email address will not be published. Required fields are marked *