Computational Physics, Python, Interpolation, Differentiation, Integration.
is super helpful. Interpolation is just a rule for filling in the gaps in your function based on the data you have. xI=np.linspace(0,np.pi,40) yI=np.sin(2*xI**2) plt.plot(xI,yI) plt.show() So that is our data. Now we want to make a function that is defined on the entire range between the endpoints