Computational Physics, Python, Interpolation, Differentiation, Integration.
of our data Let’s just try the 1d interpolate function out of the box and see what it does f_try = interpolate.interp1d(xI, yI) x_fine=np.linspace(0,np.pi,400) plt.plot(xI,yI) plt.plot(x_fine,f_try(x_fine)) plt.show() Okay — so it looks like our default function is just drawing straight lines