Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 ydataStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started