Theory (60 points) 1. This is a table for our data set (x,y). (refer to page 8, 10, 14 on the lecture slide) X -1 0 0.5 1 y 2 1 0 1 a. (15 points) Find a linear interpolation function (1st order...

1 answer below »
Please see instructions in the word document, you need to complete both theory and practice parts, submit solutions in a ipynb file.


Theory (60 points) 1. This is a table for our data set (x,y). (refer to page 8, 10, 14 on the lecture slide) X -1 0 0.5 1 y 2 1 0 1 a. (15 points) Find a linear interpolation function (1st order spline), L1, L2, L3. b. (15 points) Find a quadratic interpolation function (2nd order spline), Q1, Q2, Q3. c. (10 points) Find a Lagrange interpolation function. 2. (20 points) Determine the parameters a, b, c, d, and e so that S is a 3rd order cubic spline. (Refer to page 12 on the lecture slide) Practice (40 points) 1. (40 points/each 10 points) Using scipy.interpolate, please do interpolation for x=-1:0.01:1 with data set in the theory problem 1. (Refer to page 16, 27 on the lecture slide) a. Please do piecewise constant. Draw the plot. b. Please do linear interpolation. Draw the plot. c. Please do 3rd order spline. Draw the plot. d. Please do Radial basis function interpolation. Draw a plot.
Answered Same DayDec 01, 2021

Answer To: Theory (60 points) 1. This is a table for our data set (x,y). (refer to page 8, 10, 14 on the...

Vicky answered on Dec 04 2021
151 Votes
Theory (60 points)
This is a table for our data set (x,y). (refer to page 8, 10, 14 on the lecture
slide)
    
    X
    -1
    0
    0.5
    1
    y
    2
    1
    0
    1
(15 points) Find a linear interpolation function (1st order spline), L1, L2, L3.
L1: y = y0 + ((y1- y0)/(X1-X0))*(X-X0) => y = 2 + ((1-2)/(0+1))*(X+1) => y = 1 – X
L2: y = y1 + ((y2- y1)/(X2-X1))*(X-X1) => y = 1 + ((0-1)/(0.5-0))*(X-0) => y = 1 - 2X
L3: y = y2 + ((y3- y2)/(X3-X2))*(X-X2) => y = 0 + ((1-0)/(1-0.5))*(X-0.5) => y = 2X – 1
(15 points) Find a quadratic interpolation function (2nd order...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here
April
January
February
March
April
May
June
July
August
September
October
November
December
2025
2025
2026
2027
SunMonTueWedThuFriSat
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
1
2
3
00:00
00:30
01:00
01:30
02:00
02:30
03:00
03:30
04:00
04:30
05:00
05:30
06:00
06:30
07:00
07:30
08:00
08:30
09:00
09:30
10:00
10:30
11:00
11:30
12:00
12:30
13:00
13:30
14:00
14:30
15:00
15:30
16:00
16:30
17:00
17:30
18:00
18:30
19:00
19:30
20:00
20:30
21:00
21:30
22:00
22:30
23:00
23:30