![1. Lagrange interpolation a. Write the following function so that it returns P() at a specified value of z, where P() is the interpolating polynomial for the points whose r and y values are given by the lists xdat and ydat, respectivey. For your function, implement the Lagrange construction of the interpolating polynomial. In def lagrange_interp(x, xdat,ydat): # x is a number # xdat is a list, [x1,x2, # ydat is a list ]](http://d2vlcm61l7u1fs.cloudfront.net/media%2F906%2F90605d18-ef9d-4a2a-a093-0c9a9dd59ca1%2Fphpvzw5EI.png)



require Python to solve
1. Lagrange interpolation a. Write the following function so that it
PayPal Gateway not configured
PayPal Gateway not configured
![1. Lagrange interpolation a. Write the following function so that it returns P() at a specified value of z, where P() is the interpolating polynomial for the points whose r and y values are given by the lists xdat and ydat, respectivey. For your function, implement the Lagrange construction of the interpolating polynomial. In def lagrange_interp(x, xdat,ydat): # x is a number # xdat is a list, [x1,x2, # ydat is a list ]](http://d2vlcm61l7u1fs.cloudfront.net/media%2F906%2F90605d18-ef9d-4a2a-a093-0c9a9dd59ca1%2Fphpvzw5EI.png)



require Python to solve
1. Lagrange interpolation a. Write the following function so that it
PayPal Gateway not configured
PayPal Gateway not configured