Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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 »
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.
. (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.
. 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 Day Dec 01, 2021

Solution

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