Question: Just the code i would need to perfrom this task please For your second Python assignment, you have to write a code that performs interpolation

 Just the code i would need to perfrom this task pleaseFor your second Python assignment, you have to write a code thatperforms interpolation using two methods: 1. Linear interpolation 2. Lagrange interpolating polynomials.

Just the code i would need to perfrom this task please

For your second Python assignment, you have to write a code that performs interpolation using two methods: 1. Linear interpolation 2. Lagrange interpolating polynomials. The assignment is worth 2.5%, graded as follows: 1. [0.5%) Read x values from xdata.csv and y values from ydata.csv 2. [0.5%] Use linear interpolation to estimate yp1 at xp 0.5, and print value to screen 3. [1.0%] Use a 3rd-order Lagrange interpolating olynomial to estimate yp3 at xp-0.5, and print value to screen 4. [0.5%] Plot (x, y) values as blue circles, (xp,yp1) as a green circle, (xp, yp3) as a black circle, set figure limits to make sure all circles are visible and save the image as HW2.png You should name your file HWO2-STNO.ipynb, 1-1.00E+00 2 0.00E+00 3 1.00E+00 4 2.00E+00 5 3.00E+00 10 12 13 14 15 16 17 18 19 20 21 xdata A1 1 -1.65E+01 2 -9.00E+00 3 -9.50E+00 4 1.50E+01 5 2.25E+01 9 10) 12 13 14 15 16 17 193 19 20 21 ydata For your second Python assignment, you have to write a code that performs interpolation using two methods: 1. Linear interpolation 2. Lagrange interpolating polynomials. The assignment is worth 2.5%, graded as follows: 1. [0.5%) Read x values from xdata.csv and y values from ydata.csv 2. [0.5%] Use linear interpolation to estimate yp1 at xp 0.5, and print value to screen 3. [1.0%] Use a 3rd-order Lagrange interpolating olynomial to estimate yp3 at xp-0.5, and print value to screen 4. [0.5%] Plot (x, y) values as blue circles, (xp,yp1) as a green circle, (xp, yp3) as a black circle, set figure limits to make sure all circles are visible and save the image as HW2.png You should name your file HWO2-STNO.ipynb, 1-1.00E+00 2 0.00E+00 3 1.00E+00 4 2.00E+00 5 3.00E+00 10 12 13 14 15 16 17 18 19 20 21 xdata A1 1 -1.65E+01 2 -9.00E+00 3 -9.50E+00 4 1.50E+01 5 2.25E+01 9 10) 12 13 14 15 16 17 193 19 20 21 ydata

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!