Computational Physics, Python, Interpolation, Differentiation, Integration.
between the points. This is exactly what our plot is doing, and so we get the same sharp corners. But if we fit with a polynomial between several points, we will get a smoother looking result. E.g. using a cubic polynomial: f_cube= interpolate.interp1d(xI, yI,kind='cubic') plt.plot(xI,yI)