Computational Physics, Python, Interpolation, Differentiation, Integration.
plt.yscale('log') plt.xlim(-0.5,1) plt.show() We see pretty good agreement for some negative values of x before the true answer and our interpolation diverge. Operations on functions / interpolations One of the central reasons to use a spline is to a approximate a quantity we don’t know exactly.