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.