0% found this document useful (0 votes)
12 views6 pages

NS 7 Polynomial Interpolation Upload

The document presents a polynomial interpolation method using given x-y data points to estimate the value of a function at a specific point. It includes calculations for divided differences and polynomial coefficients, ultimately yielding a polynomial function. Additionally, it outlines steps for creating a scatter plot and adding a trendline to visualize the data.

Uploaded by

johnville682
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

NS 7 Polynomial Interpolation Upload

The document presents a polynomial interpolation method using given x-y data points to estimate the value of a function at a specific point. It includes calculations for divided differences and polynomial coefficients, ultimately yielding a polynomial function. Additionally, it outlines steps for creating a scatter plot and adding a trendline to visualize the data.

Uploaded by

johnville682
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 6

i xi f(xi) 1st 2nd

f(x0) f[x1, x0] f[x2, x1, x0]


b0
b1
0 -2 11
-10.66667
1 1 -21 3.16667
11.5
2 5 25 -2.54444
-11.4
3 10 -32

? 5.5 29.84375 𝑓_3 (𝑥)=𝑏_0 + 𝑏_1(x-𝑥_0) +𝑏_2(x-𝑥_0)(x-𝑥_1) + 𝑏_3(x-𝑥_0


(x-𝑥_2)
f.3(x) = 11+ -10.667(x - -2) + 3.167(x - -2)(x - 1) + -0.476(x - -2)(x - 1

Given Data Given Data with the unk


30 40
f(x) = − 0.47592592593 x³ + 5.07037037037 x² − 4.16851851852 x
− 21.4259259259 f(x) =30
− 0.47592592593 x³ + 5.07037037037
R² = 120 − 21.4259259259
R² = 1
20
10
10
0
-4 -2 0 2 4 6 8 10 12
0
-4 -2 0 2 4 6
-10
-10
-20
-20

-30 -30

-40 -40
Steps:

1. Highlight given x-y data set.


2. Insert --> Chart: choose Scatter with Smooth Lines and Markers.
3. Right Click one marker: Add Trendline.
4. Select Polynomial: choose Order.
5. Check Display Equation on Chart.
3rd
f[x3, x2, x1, x0]

b2
b3

-0.47593

)(x-𝑥_1) + 𝑏_3(x-𝑥_0) (x-𝑥_1)


1) + -0.476(x - -2)(x - 1)(x - 5)

Given Data with the unkown A


40

30− 0.47592592593 x³ + 5.07037037037 x² − 4.16851851852 x


.4259259259
1
20

10

0
0 2 4 6 8 10 12
10

20

30

40
(x-x0) (x-x1) (x-x2) (x-x3)
i xi f(xi) (xi-x0) (xi-x1) (xi-x2) (xi-x3) j=0

(x - xj) ( 5.5 2 ) ( 5.5 -1 ) ( 5.5 -5 ) ( 5.5 -10 )


0 -2 11
(x0 - xj) ( -2 2 ) ( -2 -1 ) ( -2 -5 ) ( -2 -10 )

(x - xj) ( 5.5 2 ) ( 5.5 -1 ) ( 5.5 -5 ) ( 5.5 -10 ) 7.5


1 1 -21
(x1 - xj) ( 1 2 ) ( 1 -1 ) ( 1 -5 ) ( 1 -10 ) 3

(x - xj) ( 5.5 2 ) ( 5.5 -1 ) ( 5.5 -5 ) ( 5.5 -10 ) 7.5


2 5 25
(x2 - xj) ( 5 2 ) ( 5 -1 ) ( 5 -5 ) ( 5 -10 ) 7

(x - xj) ( 5.5 2 ) ( 5.5 -1 ) ( 5.5 -5 ) ( 5.5 -10 ) 7.5


3 10 -32
(x3 - xj) ( 10 2 ) ( 10 -1 ) ( 10 -5 ) ( 10 -10 ) 12

? 5.5 29.84375
j=1 j=2 j=3 Π Li(x) Li(x) f(xi) Li(x) f(xi)

4.5 0.5 -4.5 -10.125


0.04018 0.44196 0.44196
-3 -7 -12 -252.000

0.5 -4.5 -16.875


-0.15625 3.28125 3.28125
-4 -9 108.000

4.5 -4.5 -151.875


1.08482 27.12054 27.12054
4 -5 -140.000

4.5 0.5 16.875


0.03125 -1.00000 -1.00000
9 5 540.000

Σ= 29.84375 29.84375
(x-x.1)/(x.0-x.1)*(x-x.2)/(x.0-x.2)*(x-x.3)/(x.0-x.3)*f.0

(x-x.0)/(x.1-x.0)*(x-x.2)/(x.1-x.2)*(x-x.3)/(x.1-x.3)*f.1

(x-x.0)/(x.2-x.0)*(x-x.1)/(x.2-x.1)*(x-x.3)/(x.2-x.3)*f.2

(x-x.0)/(x.3-x.0)*(x-x.1)/(x.3-x.1)*(x-x.2)/(x.3-x.2)*f.3

You might also like