SlideShare a Scribd company logo
1 of 25
sayısalyöntemlervematlab
uygulamalar
Numerical Methods And MATLAB
Applications
“interpolation method
PrepearedbyAliAbdullah.yousif
Content:
 Newton's forward interpolation method
 Newton's backward interpolation method
 central difference interpolation
 gauss forward difference interpolation formula
 Gauss backward difference interpolation formula
 Stirling interpolation formula
Newton's forward interpolation
method
Forward difference operator ∆𝑓 𝑥 = 𝑓(𝑥 + ℎ) − 𝑓(𝑥) are shown. wherein the first table. a difference
table as shown is prepared. 𝑥𝑜 − 𝑥1 The difference between (𝑓 𝑥𝑜 , 𝑓 𝑥1 ) the values
corresponding to the data is represented. Overall, ∆𝑓(𝑥)with the of the differences and higher-
order differences ∆²𝑓 are calculated as the difference of the previous differences. difference values.
∆𝑓 𝑥𝑜 = 𝑓(𝑥𝑜 + ℎ) − 𝑓(𝑥𝑜)
∆²𝑓(xo)= ∆ ∆𝑓 𝑥𝑜 = ∆𝑓 𝑥𝑜 + ℎ − ∆𝑓 𝑥𝑜
∆↑ 𝑟 + 1 𝑓 𝑥𝑜 = ∆ʳ𝑓 𝑥𝑜 + ℎ − ∆ʳ𝑓 𝑥𝑜
𝑓(𝑥𝑜 − 𝑥1) =
𝑓(𝑥1)−𝑓(𝑥𝑜)
ℎ
=
∆𝑓(𝑥𝑜)
ℎ
& 𝑓(𝑥𝑜, 𝑥1, … … . 𝑥𝑟) =
1
𝑟!
∆ ʳ 𝑓(𝑥0)
ℎʳ
forward finite difference table
∆ ⁴𝑓∆ ³𝑓
∆ ²𝑓∆𝒇𝒇𝒊xi
∆𝑓𝑜𝑓1𝑥1
∆ ⁴𝑓o
∆ ³𝑓o
∆ ²𝑓o∆𝑓1𝑓2𝑥2
∆ ³𝑓1
∆ ²𝑓1
∆𝑓2
𝑓3𝑥3
∆ ²𝑓2∆ 𝑓3
⋮
𝑓4
⋮
𝑥4
⋮
𝑓(𝑥) = 𝑓(𝑥𝑜) + (𝑥 − 𝑥𝑜)
∆𝑓0
1!ℎ
+ (𝑥 − 𝑥𝑜)(𝑥 − 𝑥1)
∆²𝑓
2!ℎ²
+ ⋯ + +(𝑥 − 𝑥𝑜)(𝑥 − 𝑥1) ⋯ (𝑥 − 𝑥 𝑚−1)
∆ᵐ 𝑓𝑜
𝑚!ℎᵐ
+ 𝑅 ⋯ (6.42).
−1 < 𝛼 < 1 𝑥 = 𝑥𝑜 + 𝛼ℎ 𝑎𝑛𝑑 𝑥𝜅=𝑥𝑜 + 𝜅ℎ
𝑥 − 𝑥𝜅 = ℎ 𝛼 − 𝜅
𝒇 𝒙 = 𝒇 𝒙𝒐 + 𝜶𝒉 = 𝒇𝒐 + 𝜶∆𝒇𝒐 +
𝜶 𝜶−𝟏
𝟐!
∆ ²𝒇𝒐 + ⋯ +
𝜶 𝜶−𝟏 𝜶−𝟐 ⋯ 𝜶−𝒎+𝟏
𝒎!
∆ᵐ 𝒇𝒐 + 𝑹 ⋯(6.47)
The formula given in Eq.(6.47) is called the Newton’s forward interpolation
formula. This formula is used to interpolate the values of y near the beginning of
a set of equally spaced tabular values. This formula can also be used for
extrapolating the values of y a little backward .
 Example: find y= 𝑒3𝑥 𝑓or 𝑥 = 0.05 using the following table.
 Solution:
 The difference table is shown in below:
 We have 𝑥𝑜 = 0.0 , 𝑥 = 0.05, ℎ = 0.1
 Hence 𝛼 =
𝑥−𝑥𝑜
ℎ
=
0.05−0.0
0.1
= 0.5
 Using Newton s forward formula
𝒇 𝒙 = 𝒇𝒐 + 𝜶∆𝒇𝒐 +
𝜶 𝜶−𝟏
𝟐!
∆ ²𝒇𝒐 +
𝜶(𝜶−𝟏)(𝜶−𝟐)
𝟑!
∆ ³𝒇𝒐 +
𝜶(𝜶−𝟏)(𝜶−𝟐)(𝜶−𝟑)
𝟒!
+ ⋯
𝑓 0.05 = 1.0 + 0.5 0.3499 +
0.5 0.5 − 1
2
0.1224 +
0.5 0.5 − 1 0.5 − 2
6
0.0428 +
0.5 0.5 − 1 (0.5 − 2)(0.5 − 3)
24
= 1.16172
0.40.30.20.10𝒙
3.32012.45961.82211.34991y=𝑒3𝑥
∆⁴𝒇∆³𝒇∆²𝒇∆𝒇𝒇(𝒙) = 𝒆 𝟑𝒙𝒙
1.00000
0.12240.34991.34990.1
0.01500.04280.16520.47231.82210.2
0.05780.22300.63752.45960.3
0.86053.32010.4
Eample:
newton to forward data in the table with the correct interpolation method.
A) second degree.
B)-Find the third degree polynomial.
C) same method for (0.34) to calculate the reputation value.
D) for third-degree polynomial interpolation (0.34) Develop a MATLAB program to
calculate the reputation value.
Solution:
 A) table data given in the question.
 that is the function of a cubic function. the real value of the polynomial at the point, as
shown below 1.271
 𝑓 𝑥 = 𝑥3
+ 2𝑥2
+ 1 𝑓 0.34 = (0.34)3
+2(0.34)2
+1 = 1.271
 ℎ = 𝑥𝑖+1 − 𝑥𝑖 = 0.1
 Using newton eq.
 𝑓 𝑥 = 𝑓𝑜 + 𝛼∆𝑓𝑜 +
𝛼(𝛼−1)
2!
∆²𝑓𝑜 …..
 𝑓 𝑥 = 1.021 + 𝛼0.067 +
𝛼(𝛼−1)
2
 𝑓 𝑥 = 0.026𝛼2 + 0.041𝛼 + 1.021
 B)
0.60.50.40.30.20.1𝒙
1.9361.6251.3841.2071.0881.021𝑦
∆⁴𝒇∆³𝒇∆²𝒇∆𝒇𝒇𝒊𝒙𝒊
0.0671.0210.1
0.0520.1191.0880.2
0.0000.0060.0580.1771.2070.3
0.0000.0060.0640.2411.3840.4
0.0060.0700.3111.6250.5
1.9360.6
 B)
 𝒇 𝒙 = 𝒇𝒐 + 𝜶∆𝒇𝒐 +
𝜶 𝜶−𝟏
𝟐!
∆ ²𝒇𝒐 +
𝜶(𝜶−𝟏)(𝜶−𝟐)
𝟑!
∆ ³𝒇𝒐..
 𝑓 𝑥 = 1.021 + 𝛼0.067 +
𝛼(𝛼−1)
2
0.052 +
𝛼(𝛼−1)(𝛼−2)
6
0.006
 𝑓 𝑥 = 0.001𝛼3
+ 0.023𝛼2
+ 0.043𝛼 + 1.021
 C) x=0.34 and 𝑥𝑜 = 0.3 𝑎𝑙𝑠𝑜 ℎ = 0.1 𝑖𝑠 𝑡ℎ𝑒 𝑠𝑝𝑎𝑐𝑖𝑛𝑔
 𝑥𝑖=𝑥 𝑜+𝛼ℎ ≫ 𝛼
𝑥−𝑥𝑜
ℎ
→ 𝛼 =
0.34−0.3
0.1
= 0.4
 𝑓 𝑥 = 1.021 + 𝛼0.067 +
𝛼(𝛼−1)
2
0.064
 𝑓 0.34 = 1.021 + 0.4 0.067 +
0.4 0.4−1
2
0.064 = 1.270
 actual relative error for the second-degree polynomial.𝜀ℎ =
(1.271−1.270)
1.271
≅ 0.08%
 𝑓 𝑥 = 1.021 + 𝛼0.067 +
𝛼(𝛼−1)
2
0.052 +
𝛼(𝛼−1)(𝛼−2)
6
0.006
 𝑓 0.34 = 1.021 + 0.4 ∗ 0.067 +
0.4 0.4−1
2
0.052 +
0.4 0.4−1 0.4−2
6
0.006 = 1.271
 actual relative error for the third-degree polynomial.
 𝜀ℎ =
(1.271−1.271)
1.271
≅ 0.00%
 >> x=[0.1 0.2 0.3 0.4 0.5 0.6 ];
 y=[1.021 1.088 1.207 1.384 1.625 1.9361];
 x0=0.34;
 degree=3;
 n=size(x,2);
 f=zeros(n,n);
 for i=1:n-1
 f(i,1)=(y(i+1)-y(i));
 end;
 for j=2:n-1
 for i=1:n-j
 f(i,j)=(f(i+1,j-1)-f(i,j-1));
 end;
 end;
 d=abs(x-x0);
 ind=find(d==min(d));
 differencevalue =[y(ind) f(ind,:)];
 alpha=(x0-x(ind))/(x(2)-x(1))
 fx=differencevalue(1)+alpha+differencevalue(2);
 fori=i:degree
 product=alpha
 for j=i:i
 product=product*(alpha-j);
 end;
 fx=fx+product*differencevalue(i+2)/factorial(i+1);
 alpha = 0.4000 fori = 1 2 3 product = 0.4000
Newton'sbackwardinterpolationmethod
backward difference operator. 𝛻𝑓 𝑥 = 𝑓 𝑥 − 𝑓 𝑥 − ℎ are shown. wherein a difference in the table
as in the forward difference method is prepared. numerical values in the table is the same as the
forward difference table for recognizing the numerical values are different. (𝑥0 , 𝑥1) corresponding to
you efficiency (𝑓 𝑥0 , 𝑓(𝑥1)) the difference between the values 𝛻𝑓 𝑥 are represented. when asked
what happened to the money that the calculation of the values at the beginning of the use of table
functions .newton backward difference equation. Newton’s forward interpolation formula is not
suitable for interpolation values of y near the end of a table of values.
𝛻𝑓 𝑥𝑜 = 𝑓(𝑥𝑜) − 𝑓(𝑥𝑜 − ℎ)
𝛻²𝑓(xo)= 𝛻 𝛻𝑓 𝑥𝑜 = 𝛻𝑓(𝑥𝑜) − 𝛻𝑓(𝑥𝑜 − ℎ)
𝛻 𝑟+1
𝑓 𝑥 = 𝛻ʳ𝑓 𝑥𝑜 − 𝛻ʳ𝑓 𝑥𝑜 + ℎ
−1 < 𝛼 < 1 𝑥 = 𝑥 𝑛 + 𝛼ℎ 𝑎𝑛𝑑 𝑥 − 𝑥 𝑛−1 = 𝑥 𝑛 − 𝑥 𝑛−1 + 𝛼ℎ = ℎ + 𝛼ℎ = ℎ 𝛼 + 1
𝒇 𝒙 = 𝒇𝒏 +
𝜶
𝟏!
∆𝒇 𝒏−𝟏 +
𝜶(𝜶+𝟏)
𝟐!
∆ 𝟐 𝒇 𝒏−𝟐 + ⋯ +
𝜶 𝜶+𝟏 ⋯ 𝜶+𝒎−𝟏
𝒎!
∆ 𝒎 𝒇 𝒏−𝒎 + 𝑹 ⋯(6.55)
𝒇 𝒙 = 𝒇𝒏 +
𝜶
𝟏!
𝜵𝒇 𝒏 +
𝜶(𝜶+𝟏)
𝟐!
𝜵 𝟐 𝒇 𝒏 + ⋯ +
𝜶 𝜶+𝟏 ⋯ 𝜶+𝒎−𝟏
𝒎!
𝜵 𝒎 𝒇 𝒏 + 𝑹 ⋯ (6.56)
Estimated error value:
𝑅 =
ℎ 𝑚+1
(𝑚 + 1)!
𝛼 𝛼 + 1 ⋯ 𝛼 + 𝑚 𝑓 𝑚+1(𝜖)
Eample:
From the following table estimate the number of student who obtained mark in computer
programming between 75 and 80 .
Solution:
The cumulative frequency table is shown in the table .
To find the number of student with mark less than 80
Let 𝑥 𝑛 = 85 , 𝑥 = 80 , ℎ = 10 , 𝛼 =
𝑥−𝑥 𝑛
ℎ
=
(80−850
10
=-0.5
then using NEWTON backward formula we obtain
𝒇 𝒙 = 𝒇𝒏 +
𝜶
𝟏!
𝜵𝒇 𝒏 +
𝜶(𝜶 + 𝟏)
𝟐!
𝜵 𝟐
𝒇 𝒏 + ⋯ +
𝜶 𝜶 + 𝟏 ⋯ 𝜶 + 𝒎 − 𝟏
𝒎!
𝜵 𝒎
𝒇 𝒏 +
= 200 + −0.5 20 +
−0.5 −0.5+1
2
−40 +
−0.5 −0.5+1 −0.5+2
6
−40 +
−0.5 −0.5+1 −0.5+2 −0.5+3
24
−20 = 198.2813
so number of student getting marks in computer programming between 75 and 80
=198-180=18
75-8565-7555-6545-5535-45Mark
2060604020No.of student
𝛁 𝟒
𝒚𝛁 𝟑
𝒚𝛁 𝟐
𝒚𝛁𝒚No.of
student
Mark
lessthan(x)
2045
406055
206012065
-2006018075
-20-40-402020085
 Example: using the data given in 6.4, with Newton's backward difference
formula.
 a) Find a polynomial of second and third degree.
 b) the same method to calculate x = 0:34 reputation value.
 c) the polynomial interpolation from 3.derece f = (0.39) to develop a program
that will calculate .
Solution:
prepared for the difference in the table can be used to calculate .method point but according to this
example the function ( 𝒙 𝒏 > 𝒙) must be selected by considering, for example, x = 0.5. step size value .(𝒉 =
𝒙𝒊+𝟏 − 𝒙 𝟏 = 𝟎. 𝟏 )so has the second-degree polynomial as follows using the first and second order forward
difference terms.
𝒇 𝒙 = 𝟏. 𝟔𝟐𝟓 + 𝜶𝟎. 𝟐𝟒𝟏 +
𝜶(𝜶 + 𝟏)
𝟐
𝟎. 𝟎𝟔𝟒
𝒇 𝒙 = 𝟎. 𝟎𝟑𝟐𝜶 𝟐
+ 𝟎. 𝟐𝟕𝟑𝜶 + 𝟏. 𝟔𝟐𝟓
third degree polynomial interpolation from 3.derece
𝒇 𝒙 = 𝟏. 𝟔𝟐𝟓 + 𝜶𝟎. 𝟐𝟒𝟏 +
𝜶(𝜶 + 𝟏)
𝟐
𝟎. 𝟎𝟔𝟒 +
𝜶(𝜶 + 𝟏)(𝜶 + 𝟐)
𝟔
𝟎. 𝟎𝟎𝟔
𝒇 𝒙 = 𝟎. 𝟎𝟎𝟏𝜶 𝟑
𝟎. 𝟎𝟑𝟓𝜶 𝟐
+ 𝟎. 𝟐𝟕𝟓𝜶 + 𝟏. 𝟔𝟐𝟓
𝛁 𝟑 𝒇𝛁 𝟐 𝒇𝛁𝒇𝒇𝒊𝒙𝒊
1.0210.1
0.0520.0671.0880.2
0.0060.0580.1191.2070.3
0.0060.0640.1771.3840.4
0.0060.0700.2411.6250.5
0.3111.9360.6
 B)
 𝒇 𝒙 = 𝒇𝒐 + 𝜶𝛁𝒇𝒐 +
𝜶 𝜶+𝟏
𝟐!
𝛁²𝒇𝒐 +
𝜶(𝜶+𝟏)(𝜶+𝟐)
𝟑!
𝛁 ³𝒇𝒐..
 C) x=0.34 and 𝑥𝑛 = 0.5 𝑎𝑙𝑠𝑜 ℎ = 0.1 𝑖𝑠 𝑡ℎ𝑒 𝑠𝑝𝑎𝑐𝑖𝑛𝑔
 𝑥=𝑥 𝑛+𝛼ℎ ≫ 𝛼 =
𝑥−𝑥𝑛
ℎ
→ 𝛼 =
0.34−0.5
0.1
= −1.6
𝒇 𝒙 = 𝟎. 𝟎𝟑𝟐𝜶 𝟐 + 𝟎. 𝟐𝟕𝟑𝜶 + 𝟏. 𝟔𝟐𝟓
𝒇 𝟎. 𝟑𝟒 = 𝟎. 𝟎𝟑𝟐(−𝟏. 𝟔) 𝟐+𝟎. 𝟐𝟕𝟑 −𝟏. 𝟔 + 𝟏. 𝟔𝟐𝟓 = 𝟏. 𝟐𝟕𝟎
𝒇 𝒙 = 𝟎. 𝟎𝟎𝟏𝜶 𝟑 + 𝟎. 𝟎𝟑𝟓𝜶 𝟐 + 𝟎. 𝟐𝟕𝟓𝜶 + 𝟏. 𝟔𝟐𝟓
𝒇 𝟎. 𝟑𝟒 = 𝟎. 𝟎𝟎𝟏(−𝟏. 𝟔) 𝟑
+𝟎. 𝟎𝟑𝟓(−𝟏. 𝟔) 𝟐
+𝟎. 𝟐𝟕𝟓 −𝟏. 𝟔 + 𝟏. 𝟔𝟐𝟓 = 𝟏. 𝟐𝟕𝟏
 x=[0.1 0.2 0.3 0.4 0.5 0.6 ];
 y=[1.021 1.088 1.207 1.625 1.936 ];
 xn=0.39;
 x=[0.1 0.2 0.3 0.4 0.5 0.6 ];
 y=[1.021 1.088 1.207 1.384 1.625 1.9361];
 xn=0.34;
 degree=3;
 n=size(x,2);
 f=zeros(n,n);
 for i=1:n-1
 f(i,1)=(y(i+1)-y(i));
 end;
 for j=2:n-1
 for i=1:n-j
 f(i,j)=(f(i+1,j-1)-f(i,j-1));
 end;
 end;
 ind=find(x>xn);
 ind=ind(1);
 xind=ind:-1:ind-degree+1;
 yind=1:i:degree;
 differencevalue=[y(ind+1) f(sub2ind(size(f),xind,yind))]
 alpha=(xn-x(ind+1))/(x(2)-x(1));
 fx=differencevalue(1)+alpha+differencevalue(2);
 for i=1:degree-1
 product=alpha;
 for j=1:i
 product=product*(alpha+j);
 end;
 fx=fx+product*differencevalue(i+2)/factorial(i+1);
 End ; differencevalue = 1.6250 0.2410 0.0640 0.0060
CENTRAL DIFFERENCE INTERPOLATION
 a step size equal to f(x) function ( 𝛿𝑓𝑘+1/2) center at the point of difference, 𝛿𝑓𝑘+1/2
= 𝑓𝑘+1 − 𝑓𝑘will be recognized. The central difference operator, indicated by 𝛿𝑓(𝑥) Various
central difference formula for the intermediate values ​​can be used in prepared
statements difference. about the central difference
 correlations are shown below.
 𝛿𝑓 𝑥 = 𝑓 𝑥 +
ℎ
2
− 𝑓 𝑥 −
ℎ
2
 𝛿2
𝑓 𝑥 𝑘 = 𝛿𝑓 𝑥 𝑘 +
ℎ
2
− 𝛿𝑓(𝑥 𝑘 −
ℎ
2
)
 𝛿 𝑟+1
𝑓 𝑥 𝑘 = 𝛿 𝑟
𝑓 𝑥 𝑘 +
ℎ
2
− 𝛿 𝑟
𝑓(𝑥 𝑘 −
ℎ
2
)
 at 𝑥𝑜 < 𝑥 < 𝑥1 𝛼 = 𝑥 − 𝑥𝑜/ℎ
 𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥𝑜 𝛿𝑓1
2
+ x − 𝑥0 𝑥 − 𝑥1
𝛿2 𝑓𝑜
2!ℎ2 + 𝑥 − 𝑥0 𝑥 − 𝑥0 𝑥 − 𝑥−1
𝛿3 𝑓1
2
3!ℎ3 + ( 𝑥
Example: using the data given in 6.4, the central difference interpolation method, the first and.
finding a second and third degree polynomial x = 0:34 calculate the values: Prepared difference table
used for this example. According to the method for the function to be calculated in 0.34 point x = (xo <
x < x1) must be chosen as the x = 0.3 and x = 0.4.
step size value h = x-x1 = 0.1
𝑥 = 0.34 → 𝑓 0.34 = 1.207 + 0.34 − 0.3 0.177 = 1.214
Second degree central difference interpolation
𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥𝑜 𝛿𝑓1/2 + 𝑥 − 𝑥𝑜 𝑥 − 𝑥𝑖
𝛿2 𝑓𝑜
2! ℎ2
𝑓 𝑥 = 1.207 + 𝑥 − 0.3 0.177 +
𝑥 − 0.3 𝑥 − 0.4 0.058
2 0.1 2
= 2.9𝑥2
− 1.853𝑥 + 1.502
At x=0.34 then 𝑓 𝑥 = 1.2077
Third degree central difference interpolation
𝑓 𝑥 = 2.9𝑥2
− 1.853𝑥 + 1.502 + x − 0.3 x − 0.4
𝑥 − 0.2 0.006
6 0.1 2
𝑓 𝑥 = 𝑥3
+ 2𝑥2
− 1.593𝑥 + 1.478
𝑓 0.34 = 1.206
𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥 𝑜 𝛿𝑓1
2
→ 𝑓 𝑥 = 1.207 + 𝑥 − 0.3 0.177
𝜹 𝟒
𝒇𝜹 𝟑
𝒇𝜹 𝟐
𝒇𝜹𝒇𝒇𝒊𝒙𝒊
0.0671.0210.1
0.0520.1191.08
8
0.2
0.0060.0580.1771.2070.3
0.0000.0060.0640.2411.3840.4
0.0000.0060.0700.3111.6250.5
1.9360.6
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullah

More Related Content

What's hot

Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examplesSajjad Hossain
 
AI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAhmed Gad
 
Solution of N Queens Problem genetic algorithm
Solution of N Queens Problem genetic algorithm  Solution of N Queens Problem genetic algorithm
Solution of N Queens Problem genetic algorithm MohammedAlKazal
 
Introduction To Machine Learning | Edureka
Introduction To Machine Learning | EdurekaIntroduction To Machine Learning | Edureka
Introduction To Machine Learning | EdurekaEdureka!
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machinesUjjawal
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Cursor implementation
Cursor implementationCursor implementation
Cursor implementationvicky201
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integrationTarun Gehlot
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...Lê Anh Đạt
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler methodSohaib Butt
 
Spectral clustering
Spectral clusteringSpectral clustering
Spectral clusteringSOYEON KIM
 

What's hot (20)

Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
GAUSS ELIMINATION METHOD
 GAUSS ELIMINATION METHOD GAUSS ELIMINATION METHOD
GAUSS ELIMINATION METHOD
 
AI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by ExamplesAI Uninformed Search Strategies by Examples
AI Uninformed Search Strategies by Examples
 
Solution of N Queens Problem genetic algorithm
Solution of N Queens Problem genetic algorithm  Solution of N Queens Problem genetic algorithm
Solution of N Queens Problem genetic algorithm
 
Introduction To Machine Learning | Edureka
Introduction To Machine Learning | EdurekaIntroduction To Machine Learning | Edureka
Introduction To Machine Learning | Edureka
 
Secant method
Secant methodSecant method
Secant method
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
 
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZEAPPLICATION OF NUMERICAL METHODS IN SMALL SIZE
APPLICATION OF NUMERICAL METHODS IN SMALL SIZE
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
Greedy Algorithms with examples' b-18298
Greedy Algorithms with examples'  b-18298Greedy Algorithms with examples'  b-18298
Greedy Algorithms with examples' b-18298
 
Cursor implementation
Cursor implementationCursor implementation
Cursor implementation
 
Numerical differentiation integration
Numerical differentiation integrationNumerical differentiation integration
Numerical differentiation integration
 
Runge kutta
Runge kuttaRunge kutta
Runge kutta
 
N queen problem
N queen problemN queen problem
N queen problem
 
Maglev trai
Maglev traiMaglev trai
Maglev trai
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 
Secant method
Secant methodSecant method
Secant method
 
Euler and improved euler method
Euler and improved euler methodEuler and improved euler method
Euler and improved euler method
 
A* Algorithm
A* AlgorithmA* Algorithm
A* Algorithm
 
Spectral clustering
Spectral clusteringSpectral clustering
Spectral clustering
 

Similar to numericai matmatic matlab uygulamalar ali abdullah

Sistempertidaksamaanduavariabel2122
Sistempertidaksamaanduavariabel2122Sistempertidaksamaanduavariabel2122
Sistempertidaksamaanduavariabel2122Franxisca Kurniawati
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationMeenakshisundaram N
 
Functions of severable variables
Functions of severable variablesFunctions of severable variables
Functions of severable variablesSanthanam Krishnan
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manualnmahi96
 
Study Material Numerical Solution of Odinary Differential Equations
Study Material Numerical Solution of Odinary Differential EquationsStudy Material Numerical Solution of Odinary Differential Equations
Study Material Numerical Solution of Odinary Differential EquationsMeenakshisundaram N
 
Lecture 11 state observer-2020-typed
Lecture 11 state observer-2020-typedLecture 11 state observer-2020-typed
Lecture 11 state observer-2020-typedcairo university
 
Diapositiva de Estudio: SolPrac2Am4.pptx
Diapositiva de Estudio:  SolPrac2Am4.pptxDiapositiva de Estudio:  SolPrac2Am4.pptx
Diapositiva de Estudio: SolPrac2Am4.pptxjorgejvc777
 
FOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptxFOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptxjyotidighole2
 
07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processingJordanJohmMallillin
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical TechniquesYasir Mahdi
 
Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1tinardo
 
taller transformaciones lineales
taller transformaciones linealestaller transformaciones lineales
taller transformaciones linealesemojose107
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-V
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-VEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-V
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-VRai University
 
engineeringmathematics-iv_unit-v
engineeringmathematics-iv_unit-vengineeringmathematics-iv_unit-v
engineeringmathematics-iv_unit-vKundan Kumar
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationRai University
 
Paul Bleau Calc III Project 2 - Basel Problem
Paul Bleau Calc III Project 2 - Basel ProblemPaul Bleau Calc III Project 2 - Basel Problem
Paul Bleau Calc III Project 2 - Basel ProblemPaul Bleau
 
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltAnalysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltVarun Jadhav
 

Similar to numericai matmatic matlab uygulamalar ali abdullah (20)

Numerical Methods and Analysis
Numerical Methods and AnalysisNumerical Methods and Analysis
Numerical Methods and Analysis
 
Sistempertidaksamaanduavariabel2122
Sistempertidaksamaanduavariabel2122Sistempertidaksamaanduavariabel2122
Sistempertidaksamaanduavariabel2122
 
Study Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and IntegrationStudy Material Numerical Differentiation and Integration
Study Material Numerical Differentiation and Integration
 
Functions of severable variables
Functions of severable variablesFunctions of severable variables
Functions of severable variables
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 
Study Material Numerical Solution of Odinary Differential Equations
Study Material Numerical Solution of Odinary Differential EquationsStudy Material Numerical Solution of Odinary Differential Equations
Study Material Numerical Solution of Odinary Differential Equations
 
Lecture 11 state observer-2020-typed
Lecture 11 state observer-2020-typedLecture 11 state observer-2020-typed
Lecture 11 state observer-2020-typed
 
Diapositiva de Estudio: SolPrac2Am4.pptx
Diapositiva de Estudio:  SolPrac2Am4.pptxDiapositiva de Estudio:  SolPrac2Am4.pptx
Diapositiva de Estudio: SolPrac2Am4.pptx
 
FOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptxFOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptx
 
Taller 1 parcial 3
Taller 1 parcial 3Taller 1 parcial 3
Taller 1 parcial 3
 
Four Point Gauss Quadrature Runge – Kuta Method Of Order 8 For Ordinary Diffe...
Four Point Gauss Quadrature Runge – Kuta Method Of Order 8 For Ordinary Diffe...Four Point Gauss Quadrature Runge – Kuta Method Of Order 8 For Ordinary Diffe...
Four Point Gauss Quadrature Runge – Kuta Method Of Order 8 For Ordinary Diffe...
 
07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing07-Convolution.pptx signal spectra and signal processing
07-Convolution.pptx signal spectra and signal processing
 
Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical Techniques
 
Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1Ejercicios resueltos de analisis matematico 1
Ejercicios resueltos de analisis matematico 1
 
taller transformaciones lineales
taller transformaciones linealestaller transformaciones lineales
taller transformaciones lineales
 
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-V
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-VEngineering Mathematics-IV_B.Tech_Semester-IV_Unit-V
Engineering Mathematics-IV_B.Tech_Semester-IV_Unit-V
 
engineeringmathematics-iv_unit-v
engineeringmathematics-iv_unit-vengineeringmathematics-iv_unit-v
engineeringmathematics-iv_unit-v
 
B.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integrationB.tech ii unit-5 material vector integration
B.tech ii unit-5 material vector integration
 
Paul Bleau Calc III Project 2 - Basel Problem
Paul Bleau Calc III Project 2 - Basel ProblemPaul Bleau Calc III Project 2 - Basel Problem
Paul Bleau Calc III Project 2 - Basel Problem
 
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving beltAnalysis of a self-sustained vibration of mass-spring oscillator on moving belt
Analysis of a self-sustained vibration of mass-spring oscillator on moving belt
 

Recently uploaded

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 

Recently uploaded (20)

College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 

numericai matmatic matlab uygulamalar ali abdullah

  • 1. sayısalyöntemlervematlab uygulamalar Numerical Methods And MATLAB Applications “interpolation method PrepearedbyAliAbdullah.yousif
  • 2. Content:  Newton's forward interpolation method  Newton's backward interpolation method  central difference interpolation  gauss forward difference interpolation formula  Gauss backward difference interpolation formula  Stirling interpolation formula
  • 3.
  • 4. Newton's forward interpolation method Forward difference operator ∆𝑓 𝑥 = 𝑓(𝑥 + ℎ) − 𝑓(𝑥) are shown. wherein the first table. a difference table as shown is prepared. 𝑥𝑜 − 𝑥1 The difference between (𝑓 𝑥𝑜 , 𝑓 𝑥1 ) the values corresponding to the data is represented. Overall, ∆𝑓(𝑥)with the of the differences and higher- order differences ∆²𝑓 are calculated as the difference of the previous differences. difference values. ∆𝑓 𝑥𝑜 = 𝑓(𝑥𝑜 + ℎ) − 𝑓(𝑥𝑜) ∆²𝑓(xo)= ∆ ∆𝑓 𝑥𝑜 = ∆𝑓 𝑥𝑜 + ℎ − ∆𝑓 𝑥𝑜 ∆↑ 𝑟 + 1 𝑓 𝑥𝑜 = ∆ʳ𝑓 𝑥𝑜 + ℎ − ∆ʳ𝑓 𝑥𝑜 𝑓(𝑥𝑜 − 𝑥1) = 𝑓(𝑥1)−𝑓(𝑥𝑜) ℎ = ∆𝑓(𝑥𝑜) ℎ & 𝑓(𝑥𝑜, 𝑥1, … … . 𝑥𝑟) = 1 𝑟! ∆ ʳ 𝑓(𝑥0) ℎʳ forward finite difference table ∆ ⁴𝑓∆ ³𝑓 ∆ ²𝑓∆𝒇𝒇𝒊xi ∆𝑓𝑜𝑓1𝑥1 ∆ ⁴𝑓o ∆ ³𝑓o ∆ ²𝑓o∆𝑓1𝑓2𝑥2 ∆ ³𝑓1 ∆ ²𝑓1 ∆𝑓2 𝑓3𝑥3 ∆ ²𝑓2∆ 𝑓3 ⋮ 𝑓4 ⋮ 𝑥4 ⋮
  • 5. 𝑓(𝑥) = 𝑓(𝑥𝑜) + (𝑥 − 𝑥𝑜) ∆𝑓0 1!ℎ + (𝑥 − 𝑥𝑜)(𝑥 − 𝑥1) ∆²𝑓 2!ℎ² + ⋯ + +(𝑥 − 𝑥𝑜)(𝑥 − 𝑥1) ⋯ (𝑥 − 𝑥 𝑚−1) ∆ᵐ 𝑓𝑜 𝑚!ℎᵐ + 𝑅 ⋯ (6.42). −1 < 𝛼 < 1 𝑥 = 𝑥𝑜 + 𝛼ℎ 𝑎𝑛𝑑 𝑥𝜅=𝑥𝑜 + 𝜅ℎ 𝑥 − 𝑥𝜅 = ℎ 𝛼 − 𝜅 𝒇 𝒙 = 𝒇 𝒙𝒐 + 𝜶𝒉 = 𝒇𝒐 + 𝜶∆𝒇𝒐 + 𝜶 𝜶−𝟏 𝟐! ∆ ²𝒇𝒐 + ⋯ + 𝜶 𝜶−𝟏 𝜶−𝟐 ⋯ 𝜶−𝒎+𝟏 𝒎! ∆ᵐ 𝒇𝒐 + 𝑹 ⋯(6.47) The formula given in Eq.(6.47) is called the Newton’s forward interpolation formula. This formula is used to interpolate the values of y near the beginning of a set of equally spaced tabular values. This formula can also be used for extrapolating the values of y a little backward .
  • 6.  Example: find y= 𝑒3𝑥 𝑓or 𝑥 = 0.05 using the following table.  Solution:  The difference table is shown in below:  We have 𝑥𝑜 = 0.0 , 𝑥 = 0.05, ℎ = 0.1  Hence 𝛼 = 𝑥−𝑥𝑜 ℎ = 0.05−0.0 0.1 = 0.5  Using Newton s forward formula 𝒇 𝒙 = 𝒇𝒐 + 𝜶∆𝒇𝒐 + 𝜶 𝜶−𝟏 𝟐! ∆ ²𝒇𝒐 + 𝜶(𝜶−𝟏)(𝜶−𝟐) 𝟑! ∆ ³𝒇𝒐 + 𝜶(𝜶−𝟏)(𝜶−𝟐)(𝜶−𝟑) 𝟒! + ⋯ 𝑓 0.05 = 1.0 + 0.5 0.3499 + 0.5 0.5 − 1 2 0.1224 + 0.5 0.5 − 1 0.5 − 2 6 0.0428 + 0.5 0.5 − 1 (0.5 − 2)(0.5 − 3) 24 = 1.16172 0.40.30.20.10𝒙 3.32012.45961.82211.34991y=𝑒3𝑥 ∆⁴𝒇∆³𝒇∆²𝒇∆𝒇𝒇(𝒙) = 𝒆 𝟑𝒙𝒙 1.00000 0.12240.34991.34990.1 0.01500.04280.16520.47231.82210.2 0.05780.22300.63752.45960.3 0.86053.32010.4
  • 7. Eample: newton to forward data in the table with the correct interpolation method. A) second degree. B)-Find the third degree polynomial. C) same method for (0.34) to calculate the reputation value. D) for third-degree polynomial interpolation (0.34) Develop a MATLAB program to calculate the reputation value. Solution:  A) table data given in the question.  that is the function of a cubic function. the real value of the polynomial at the point, as shown below 1.271  𝑓 𝑥 = 𝑥3 + 2𝑥2 + 1 𝑓 0.34 = (0.34)3 +2(0.34)2 +1 = 1.271  ℎ = 𝑥𝑖+1 − 𝑥𝑖 = 0.1  Using newton eq.  𝑓 𝑥 = 𝑓𝑜 + 𝛼∆𝑓𝑜 + 𝛼(𝛼−1) 2! ∆²𝑓𝑜 …..  𝑓 𝑥 = 1.021 + 𝛼0.067 + 𝛼(𝛼−1) 2  𝑓 𝑥 = 0.026𝛼2 + 0.041𝛼 + 1.021  B) 0.60.50.40.30.20.1𝒙 1.9361.6251.3841.2071.0881.021𝑦 ∆⁴𝒇∆³𝒇∆²𝒇∆𝒇𝒇𝒊𝒙𝒊 0.0671.0210.1 0.0520.1191.0880.2 0.0000.0060.0580.1771.2070.3 0.0000.0060.0640.2411.3840.4 0.0060.0700.3111.6250.5 1.9360.6
  • 8.  B)  𝒇 𝒙 = 𝒇𝒐 + 𝜶∆𝒇𝒐 + 𝜶 𝜶−𝟏 𝟐! ∆ ²𝒇𝒐 + 𝜶(𝜶−𝟏)(𝜶−𝟐) 𝟑! ∆ ³𝒇𝒐..  𝑓 𝑥 = 1.021 + 𝛼0.067 + 𝛼(𝛼−1) 2 0.052 + 𝛼(𝛼−1)(𝛼−2) 6 0.006  𝑓 𝑥 = 0.001𝛼3 + 0.023𝛼2 + 0.043𝛼 + 1.021  C) x=0.34 and 𝑥𝑜 = 0.3 𝑎𝑙𝑠𝑜 ℎ = 0.1 𝑖𝑠 𝑡ℎ𝑒 𝑠𝑝𝑎𝑐𝑖𝑛𝑔  𝑥𝑖=𝑥 𝑜+𝛼ℎ ≫ 𝛼 𝑥−𝑥𝑜 ℎ → 𝛼 = 0.34−0.3 0.1 = 0.4  𝑓 𝑥 = 1.021 + 𝛼0.067 + 𝛼(𝛼−1) 2 0.064  𝑓 0.34 = 1.021 + 0.4 0.067 + 0.4 0.4−1 2 0.064 = 1.270  actual relative error for the second-degree polynomial.𝜀ℎ = (1.271−1.270) 1.271 ≅ 0.08%  𝑓 𝑥 = 1.021 + 𝛼0.067 + 𝛼(𝛼−1) 2 0.052 + 𝛼(𝛼−1)(𝛼−2) 6 0.006  𝑓 0.34 = 1.021 + 0.4 ∗ 0.067 + 0.4 0.4−1 2 0.052 + 0.4 0.4−1 0.4−2 6 0.006 = 1.271  actual relative error for the third-degree polynomial.  𝜀ℎ = (1.271−1.271) 1.271 ≅ 0.00%
  • 9.  >> x=[0.1 0.2 0.3 0.4 0.5 0.6 ];  y=[1.021 1.088 1.207 1.384 1.625 1.9361];  x0=0.34;  degree=3;  n=size(x,2);  f=zeros(n,n);  for i=1:n-1  f(i,1)=(y(i+1)-y(i));  end;  for j=2:n-1  for i=1:n-j  f(i,j)=(f(i+1,j-1)-f(i,j-1));  end;  end;  d=abs(x-x0);  ind=find(d==min(d));  differencevalue =[y(ind) f(ind,:)];  alpha=(x0-x(ind))/(x(2)-x(1))  fx=differencevalue(1)+alpha+differencevalue(2);  fori=i:degree  product=alpha  for j=i:i  product=product*(alpha-j);  end;  fx=fx+product*differencevalue(i+2)/factorial(i+1);  alpha = 0.4000 fori = 1 2 3 product = 0.4000
  • 10. Newton'sbackwardinterpolationmethod backward difference operator. 𝛻𝑓 𝑥 = 𝑓 𝑥 − 𝑓 𝑥 − ℎ are shown. wherein a difference in the table as in the forward difference method is prepared. numerical values in the table is the same as the forward difference table for recognizing the numerical values are different. (𝑥0 , 𝑥1) corresponding to you efficiency (𝑓 𝑥0 , 𝑓(𝑥1)) the difference between the values 𝛻𝑓 𝑥 are represented. when asked what happened to the money that the calculation of the values at the beginning of the use of table functions .newton backward difference equation. Newton’s forward interpolation formula is not suitable for interpolation values of y near the end of a table of values. 𝛻𝑓 𝑥𝑜 = 𝑓(𝑥𝑜) − 𝑓(𝑥𝑜 − ℎ) 𝛻²𝑓(xo)= 𝛻 𝛻𝑓 𝑥𝑜 = 𝛻𝑓(𝑥𝑜) − 𝛻𝑓(𝑥𝑜 − ℎ) 𝛻 𝑟+1 𝑓 𝑥 = 𝛻ʳ𝑓 𝑥𝑜 − 𝛻ʳ𝑓 𝑥𝑜 + ℎ −1 < 𝛼 < 1 𝑥 = 𝑥 𝑛 + 𝛼ℎ 𝑎𝑛𝑑 𝑥 − 𝑥 𝑛−1 = 𝑥 𝑛 − 𝑥 𝑛−1 + 𝛼ℎ = ℎ + 𝛼ℎ = ℎ 𝛼 + 1 𝒇 𝒙 = 𝒇𝒏 + 𝜶 𝟏! ∆𝒇 𝒏−𝟏 + 𝜶(𝜶+𝟏) 𝟐! ∆ 𝟐 𝒇 𝒏−𝟐 + ⋯ + 𝜶 𝜶+𝟏 ⋯ 𝜶+𝒎−𝟏 𝒎! ∆ 𝒎 𝒇 𝒏−𝒎 + 𝑹 ⋯(6.55) 𝒇 𝒙 = 𝒇𝒏 + 𝜶 𝟏! 𝜵𝒇 𝒏 + 𝜶(𝜶+𝟏) 𝟐! 𝜵 𝟐 𝒇 𝒏 + ⋯ + 𝜶 𝜶+𝟏 ⋯ 𝜶+𝒎−𝟏 𝒎! 𝜵 𝒎 𝒇 𝒏 + 𝑹 ⋯ (6.56) Estimated error value: 𝑅 = ℎ 𝑚+1 (𝑚 + 1)! 𝛼 𝛼 + 1 ⋯ 𝛼 + 𝑚 𝑓 𝑚+1(𝜖)
  • 11. Eample: From the following table estimate the number of student who obtained mark in computer programming between 75 and 80 . Solution: The cumulative frequency table is shown in the table . To find the number of student with mark less than 80 Let 𝑥 𝑛 = 85 , 𝑥 = 80 , ℎ = 10 , 𝛼 = 𝑥−𝑥 𝑛 ℎ = (80−850 10 =-0.5 then using NEWTON backward formula we obtain 𝒇 𝒙 = 𝒇𝒏 + 𝜶 𝟏! 𝜵𝒇 𝒏 + 𝜶(𝜶 + 𝟏) 𝟐! 𝜵 𝟐 𝒇 𝒏 + ⋯ + 𝜶 𝜶 + 𝟏 ⋯ 𝜶 + 𝒎 − 𝟏 𝒎! 𝜵 𝒎 𝒇 𝒏 + = 200 + −0.5 20 + −0.5 −0.5+1 2 −40 + −0.5 −0.5+1 −0.5+2 6 −40 + −0.5 −0.5+1 −0.5+2 −0.5+3 24 −20 = 198.2813 so number of student getting marks in computer programming between 75 and 80 =198-180=18 75-8565-7555-6545-5535-45Mark 2060604020No.of student 𝛁 𝟒 𝒚𝛁 𝟑 𝒚𝛁 𝟐 𝒚𝛁𝒚No.of student Mark lessthan(x) 2045 406055 206012065 -2006018075 -20-40-402020085
  • 12.  Example: using the data given in 6.4, with Newton's backward difference formula.  a) Find a polynomial of second and third degree.  b) the same method to calculate x = 0:34 reputation value.  c) the polynomial interpolation from 3.derece f = (0.39) to develop a program that will calculate . Solution: prepared for the difference in the table can be used to calculate .method point but according to this example the function ( 𝒙 𝒏 > 𝒙) must be selected by considering, for example, x = 0.5. step size value .(𝒉 = 𝒙𝒊+𝟏 − 𝒙 𝟏 = 𝟎. 𝟏 )so has the second-degree polynomial as follows using the first and second order forward difference terms. 𝒇 𝒙 = 𝟏. 𝟔𝟐𝟓 + 𝜶𝟎. 𝟐𝟒𝟏 + 𝜶(𝜶 + 𝟏) 𝟐 𝟎. 𝟎𝟔𝟒 𝒇 𝒙 = 𝟎. 𝟎𝟑𝟐𝜶 𝟐 + 𝟎. 𝟐𝟕𝟑𝜶 + 𝟏. 𝟔𝟐𝟓 third degree polynomial interpolation from 3.derece 𝒇 𝒙 = 𝟏. 𝟔𝟐𝟓 + 𝜶𝟎. 𝟐𝟒𝟏 + 𝜶(𝜶 + 𝟏) 𝟐 𝟎. 𝟎𝟔𝟒 + 𝜶(𝜶 + 𝟏)(𝜶 + 𝟐) 𝟔 𝟎. 𝟎𝟎𝟔 𝒇 𝒙 = 𝟎. 𝟎𝟎𝟏𝜶 𝟑 𝟎. 𝟎𝟑𝟓𝜶 𝟐 + 𝟎. 𝟐𝟕𝟓𝜶 + 𝟏. 𝟔𝟐𝟓 𝛁 𝟑 𝒇𝛁 𝟐 𝒇𝛁𝒇𝒇𝒊𝒙𝒊 1.0210.1 0.0520.0671.0880.2 0.0060.0580.1191.2070.3 0.0060.0640.1771.3840.4 0.0060.0700.2411.6250.5 0.3111.9360.6
  • 13.  B)  𝒇 𝒙 = 𝒇𝒐 + 𝜶𝛁𝒇𝒐 + 𝜶 𝜶+𝟏 𝟐! 𝛁²𝒇𝒐 + 𝜶(𝜶+𝟏)(𝜶+𝟐) 𝟑! 𝛁 ³𝒇𝒐..  C) x=0.34 and 𝑥𝑛 = 0.5 𝑎𝑙𝑠𝑜 ℎ = 0.1 𝑖𝑠 𝑡ℎ𝑒 𝑠𝑝𝑎𝑐𝑖𝑛𝑔  𝑥=𝑥 𝑛+𝛼ℎ ≫ 𝛼 = 𝑥−𝑥𝑛 ℎ → 𝛼 = 0.34−0.5 0.1 = −1.6 𝒇 𝒙 = 𝟎. 𝟎𝟑𝟐𝜶 𝟐 + 𝟎. 𝟐𝟕𝟑𝜶 + 𝟏. 𝟔𝟐𝟓 𝒇 𝟎. 𝟑𝟒 = 𝟎. 𝟎𝟑𝟐(−𝟏. 𝟔) 𝟐+𝟎. 𝟐𝟕𝟑 −𝟏. 𝟔 + 𝟏. 𝟔𝟐𝟓 = 𝟏. 𝟐𝟕𝟎 𝒇 𝒙 = 𝟎. 𝟎𝟎𝟏𝜶 𝟑 + 𝟎. 𝟎𝟑𝟓𝜶 𝟐 + 𝟎. 𝟐𝟕𝟓𝜶 + 𝟏. 𝟔𝟐𝟓 𝒇 𝟎. 𝟑𝟒 = 𝟎. 𝟎𝟎𝟏(−𝟏. 𝟔) 𝟑 +𝟎. 𝟎𝟑𝟓(−𝟏. 𝟔) 𝟐 +𝟎. 𝟐𝟕𝟓 −𝟏. 𝟔 + 𝟏. 𝟔𝟐𝟓 = 𝟏. 𝟐𝟕𝟏
  • 14.  x=[0.1 0.2 0.3 0.4 0.5 0.6 ];  y=[1.021 1.088 1.207 1.625 1.936 ];  xn=0.39;  x=[0.1 0.2 0.3 0.4 0.5 0.6 ];  y=[1.021 1.088 1.207 1.384 1.625 1.9361];  xn=0.34;  degree=3;  n=size(x,2);  f=zeros(n,n);  for i=1:n-1  f(i,1)=(y(i+1)-y(i));  end;  for j=2:n-1  for i=1:n-j  f(i,j)=(f(i+1,j-1)-f(i,j-1));  end;  end;  ind=find(x>xn);  ind=ind(1);  xind=ind:-1:ind-degree+1;  yind=1:i:degree;  differencevalue=[y(ind+1) f(sub2ind(size(f),xind,yind))]  alpha=(xn-x(ind+1))/(x(2)-x(1));  fx=differencevalue(1)+alpha+differencevalue(2);  for i=1:degree-1  product=alpha;  for j=1:i  product=product*(alpha+j);  end;  fx=fx+product*differencevalue(i+2)/factorial(i+1);  End ; differencevalue = 1.6250 0.2410 0.0640 0.0060
  • 15. CENTRAL DIFFERENCE INTERPOLATION  a step size equal to f(x) function ( 𝛿𝑓𝑘+1/2) center at the point of difference, 𝛿𝑓𝑘+1/2 = 𝑓𝑘+1 − 𝑓𝑘will be recognized. The central difference operator, indicated by 𝛿𝑓(𝑥) Various central difference formula for the intermediate values ​​can be used in prepared statements difference. about the central difference  correlations are shown below.  𝛿𝑓 𝑥 = 𝑓 𝑥 + ℎ 2 − 𝑓 𝑥 − ℎ 2  𝛿2 𝑓 𝑥 𝑘 = 𝛿𝑓 𝑥 𝑘 + ℎ 2 − 𝛿𝑓(𝑥 𝑘 − ℎ 2 )  𝛿 𝑟+1 𝑓 𝑥 𝑘 = 𝛿 𝑟 𝑓 𝑥 𝑘 + ℎ 2 − 𝛿 𝑟 𝑓(𝑥 𝑘 − ℎ 2 )  at 𝑥𝑜 < 𝑥 < 𝑥1 𝛼 = 𝑥 − 𝑥𝑜/ℎ  𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥𝑜 𝛿𝑓1 2 + x − 𝑥0 𝑥 − 𝑥1 𝛿2 𝑓𝑜 2!ℎ2 + 𝑥 − 𝑥0 𝑥 − 𝑥0 𝑥 − 𝑥−1 𝛿3 𝑓1 2 3!ℎ3 + ( 𝑥
  • 16.
  • 17.
  • 18. Example: using the data given in 6.4, the central difference interpolation method, the first and. finding a second and third degree polynomial x = 0:34 calculate the values: Prepared difference table used for this example. According to the method for the function to be calculated in 0.34 point x = (xo < x < x1) must be chosen as the x = 0.3 and x = 0.4. step size value h = x-x1 = 0.1 𝑥 = 0.34 → 𝑓 0.34 = 1.207 + 0.34 − 0.3 0.177 = 1.214 Second degree central difference interpolation 𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥𝑜 𝛿𝑓1/2 + 𝑥 − 𝑥𝑜 𝑥 − 𝑥𝑖 𝛿2 𝑓𝑜 2! ℎ2 𝑓 𝑥 = 1.207 + 𝑥 − 0.3 0.177 + 𝑥 − 0.3 𝑥 − 0.4 0.058 2 0.1 2 = 2.9𝑥2 − 1.853𝑥 + 1.502 At x=0.34 then 𝑓 𝑥 = 1.2077 Third degree central difference interpolation 𝑓 𝑥 = 2.9𝑥2 − 1.853𝑥 + 1.502 + x − 0.3 x − 0.4 𝑥 − 0.2 0.006 6 0.1 2 𝑓 𝑥 = 𝑥3 + 2𝑥2 − 1.593𝑥 + 1.478 𝑓 0.34 = 1.206 𝑓 𝑥 = 𝑓𝑜 + 𝑥 − 𝑥 𝑜 𝛿𝑓1 2 → 𝑓 𝑥 = 1.207 + 𝑥 − 0.3 0.177 𝜹 𝟒 𝒇𝜹 𝟑 𝒇𝜹 𝟐 𝒇𝜹𝒇𝒇𝒊𝒙𝒊 0.0671.0210.1 0.0520.1191.08 8 0.2 0.0060.0580.1771.2070.3 0.0000.0060.0640.2411.3840.4 0.0000.0060.0700.3111.6250.5 1.9360.6