Interpolation Of: Course No: CEE137 Course Name: Numerical Analysis
Interpolation Of: Course No: CEE137 Course Name: Numerical Analysis
Interpolation Of: Course No: CEE137 Course Name: Numerical Analysis
Assignment on
Interpolation of 𝐬𝐢𝐧(𝟖𝟎°)
𝒙 𝐬𝐢𝐧(𝒙)
0 0.00000
15 0.25882
30 0.50000
45 0.70711
60 0.86603
75 0.96593
90 1.00000
Answer:
Linear Interpolation:
Considering a straight line equation,
sin(𝑥) = 𝑎𝑥 + 𝑏
𝑎 = 2.271333 × 10−3
𝑏 = 0.79558
Polynomial Interpolation:
Considering a second order polynomial,
sin(𝑥) = 𝑎1 + 𝑎2 𝑥 + 𝑎3 𝑥 2
Passing through 3 points (60, 0.86603), (75, 0.96593) and (90, 1.00000),
𝑎2 = 0.026409 ,
𝑎3 = −1.46289 × 10−4 .
sin(𝑥) = 𝑎1 + 𝑎2 (𝑥 − 𝑥1 ) + 𝑎3 (𝑥 − 𝑥1 )(𝑥 − 𝑥2 )
When𝑥 = 60°,
When𝑥 = 75°,
When𝑥 = 90°,
𝑎1 = 0.96593,
𝑎2 = 2.27133 × 10−3 ,
𝑎3 = −1.46289 × 10−4 .
So, sin(𝑥) = 0.96593 + 2.27133 × 10−3 (𝑥 − 75) − 1.46289 × 10−4 (𝑥 − 75)(𝑥 − 90)