Section 3 Interpolation and Polynomial Approximation
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 78
Section 3 Interpolation and Polynomial Approximation Numerical - - PowerPoint PPT Presentation
Section 3 Interpolation and Polynomial Approximation Numerical Analysis I Xiaojing Ye, Math & Stat, Georgia State University 78 Interpolation ( x i , y i ) : i = 1 , . . . , n Given data points , can we find a function to
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 78
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 79
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 80
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 81
y x 5 10 15 20 1 1 2 3 y P2(x) y P3(x) y P4(x) y P5(x) y P1(x) y P0(x) y ex
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 82
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 83
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 84
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 85
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 86
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 87
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 88
2
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 89
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 90
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 91
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 92
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 93
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 94
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 95
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 96
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 97
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 98
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 99
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 100
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 101
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 102
x1−x0
x2−x1
x2−x0
x3−x2
x3−x1
x4−x3
x4−x2
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 103
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 104
2The data in this table were retrieved from a Bessel function with true value
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 105
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 106
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 107
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 108
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 109
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 110
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 111
112
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 113
3For example, ∇2pn = (pn − pn−1) − (pn−1 − pn−2) = pn − 2pn−1 + pn−2. Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 114
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 115
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 116
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 117
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 118
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 119
z0 = x0 f [z0] = f (x0) z1 = x0 f [z1] = f (x0) f [z0, z1] = f ′(x0) z2 = x1 f [z2] = f (x1) f [z1, z2] = f [z2]−f [z1]
z2−z1
f [z0, z1, z2] z3 = x1 f [z3] = f (x1) f [z2, z3] = f ′(x1) f [z1, z2, z3] f [z0, z1, z2, z3] z4 = x2 f [z4] = f (x2) f [z3, z4] = f [z4]−f [z3]
z4−z3
f [z2, z3, z4] f [z1, z2, z3, z4] f [z0, z1, z2, z3, z4] z5 = x3 f [z5] = f (x3) f [z4, z5] = f ′(x2) f [z3, z4, z5] f [z2, z3, z4, z5] f [z1, z2, z3, z4, z5] . . . Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 120
z2i−z2i−1
Numerical Analysis I – Xiaojing Ye, Math & Stat, Georgia State University 121