Professional Documents
Culture Documents
EMT 3200 Presentation (Group 14)
EMT 3200 Presentation (Group 14)
1
Group Members
Name USI
Bibi Serafya Shameer 1031596
Jonathon Narine 1013778
Samuel Rafiek 1030773
Yuvraj Ramnath 1032626
Nicholas Sattaur 1031930
Shildon Williams 1031152
2
Task Sheet
4
1.0 Linear Interpolation
point 5
1.0 Linear Interpolation
The formula for linear interpolation in its simplest form is given as:
(𝑥 − 𝑥1 )(𝑦2 − 𝑦1 )
𝑦 = 𝑦1 +
(𝑥2 − 𝑥1 )
Where:
𝑥1 and 𝑦1 are the first coordinates;
𝑥2 and 𝑦2 are the second coordinates;
𝑥 is the point to perform the interpolation;
𝑦 is the interpolated value.
7
1.0 Linear Interpolation
Example:
Consider the following data:
Where:
𝑥1 and 𝑦1 = 3 and 4
𝑥2 and 𝑦2 = 5 and 8
𝑥 = 4, 𝑦 = ?
Substituting:
4−3 8−4
𝑦 = 4+ =6
5−3
Thus on the fourth day, the height will be 6 units. 9
1.0 Linear Interpolation
Example 2
The population of a city was recorded every ten years, starting in 1980. Use
the following table and interpolate to estimate what the population was in
2009.
10
1.0 Linear Interpolation
Example 2
11
2.0 Newton-Gregory Forward Difference Formula
12
2.0 Newton-Gregory Forward Difference Formula
We assume that 𝑥𝑜 , 𝑥1 … are distinct equally spaced apart, ∆𝑓𝑜 = f(x1) - f(𝑥𝑜 )
and 𝑥𝑜 <x1<…
13
2.0 Newton-Gregory Forward Difference Formula
14
2.0 Newton-Gregory Forward Difference Formula
• For each pair of consecutive function values f (𝑥𝑜 ) and f (𝑥1 ) in the table,
the forward difference ∆fo is calculated by subtracting f(𝑥𝑜 ) from f(x1).
16
2.0 Newton-Gregory Forward Difference Formula
17
2.0 Newton-Gregory Forward Difference Formula
18
2.0 Newton-Gregory Forward Difference Formula
𝑝(𝑝 − 1) 2 𝑝 𝑝 − 1 (𝑝 − 2) 3
𝑓𝑝 = 𝑓𝑜 + 𝑝∆𝑓𝑜 + ∆ 𝑓𝑜 + ∆ 𝑓𝑜 + ⋯
2! 3!
Example:
Use the table below to find f (2.5).
20
2.0 Newton-Gregory Forward Difference Formula
2.5−2.0
Therefore, in this case h = 1 and p = = 0.5
1
We now use the set of values underlined from the table above drawn diagonally
from f (x0). Thus: p= 0.5 f0 = 14 ∆fo = 26 ∆2 fo =22 ∆3 fo = 6
21
2.0 Newton-Gregory Forward Difference Formula
𝑝(𝑝 − 1) 2 𝑝 𝑝 − 1 (𝑝 − 2) 3
𝑓𝑝 = 𝑓𝑜 + 𝑝∆𝑓𝑜 + ∆ 𝑓𝑜 + ∆ 𝑓𝑜 + ⋯
2! 3!
𝑓𝑝 = 14 + 13 - 2.75 + 0.375
𝑓𝑝 = 24.625
22
3.0 Newton-Gregory Backward Difference Formula
This method is applied when the value to be estimated lies towards the end of
the data set. The 𝑥 values of the data set should be equally spaced.
𝑟 𝑟+1 2
𝑟 𝑟+1 𝑟+2
𝑓 𝑥 = 𝑌𝑛 + 𝑟(𝛻𝑌𝑛 ) + (𝛻 𝑌𝑛 ) + (𝛻 3 𝑌𝑛 ) +
𝑛! 𝑛!
𝑟(𝑟 + 1) ⋯ (𝑟 + (𝑛 − 1) 𝑛
…+ (𝛻 𝑌𝑛 )
𝑛!
23
3.0 Newton-Gregory Backward Difference Formula
Where:
𝑥−𝑥𝑛
• 𝑟=
ℎ
To find the Backward differences, the procedure in the table below is followed.
The Highlighted cells are the Backward differences; the process is the same for
any number of values
25
3.0 Newton-Gregory Backward Difference Formula
Example
26
3.0 Newton-Gregory Backward Difference Formula
Next we compute 𝑟:
57 − 60
𝑟= = −0.6
5 27
3.0 Newton-Gregory Backward Difference Formula
−0.6 −0.6 + 1
f x = 0.8660 + −0.6 0.0468 + −0.0064
2
(−0.6)(−0.6 + 1)(−0.6 + 2)
+ (−0.0007)
6
f(x) = 0.8387
28
4.0 Gauss Forward Interpolation Formula
29
4.0 Gauss Forward Interpolation Formula
• Example
Given the data in the following table, determine the corresponding f(x)
value for x = 5.5.
For the last column, subtracting would give a value of 0, as such, the
computation comes to an end for the tabular portion.
32
4.0 Gauss Forward Interpolation Formula
Recall that:
𝑝(𝑝−1) 2 𝑝+1 𝑝(𝑝−1)
• 𝑓𝑝 = 𝑓𝑜 + 𝑝𝛿𝑓0 + 1 + 𝛿 𝑓0 + 𝑝𝛿 3 𝑓0 + 1
2 2! 3! 2
• 𝒇𝒐 = 𝟏𝟔𝟓, 𝜹𝒇𝟎 + 𝟏 = 𝟕𝟖, 𝜹𝟐 𝒇𝟎 = 𝟐𝟏, 𝜹𝟑 𝒇𝟎 + 𝟏 = 𝟑, 𝒙𝒑 = 𝟓. 𝟓
𝟐 𝟐
𝑥𝑝 −𝑥0 5.5−4
• 𝑝= = = 𝟎. 𝟕𝟓
ℎ 2
0.75 0.75−1 0.75+1 0.75 0.75−1
• 𝑓𝑝 = 165 + (0.75)(78) + (21) + (3)
2×1 3×2×1
• 𝑓𝑝 = 165 + 58.5 − 1.97 − 0.16
• 𝒇𝒑 = 𝟐𝟐𝟏. 𝟑𝟕
The 𝐟(𝐱) value that corresponds to 𝐱 = 𝟓. 𝟓, was found to be 221.37 after
interpolation
33
5.0 Gauss Backward Interpolation Formula
34
5.0 Gauss Backward Interpolation Formula
Where:
35
5.0 Gauss Backward Interpolation Formula
Example
• Find the value of f(x) when x = 1976.
36
5.0 Gauss Backward Interpolation Formula
37
5.0 Gauss Backward Interpolation Formula
38
5.0 Gauss Backward Interpolation Formula
39
5.0 Gauss Backward Interpolation Formula
• Substituting:
• 𝑦 1976 =
0.6 0.6+1 0.6(0.62 −1) 0.6(0.62 −1)(0.6+2)
32 + 0.6 5 + × −1 + ×1 + × −2 +
2! 3! 4!
0.6(0.62 −4)(0.62 −1)
× −9
5!
• 𝑦 1976 = 34.434368
40
References