Computational Physics, Python, Interpolation, Differentiation, Integration.
For example, Scipy has a built in function that computes a numerical derivative from scipy.misc import derivative def g(x): return x**3 derivative(g,1,dx=1e-5) Out: 3.000000000097369 We could make our own very simple version: def my_derivative(g,x0,dx): return (g(x0+dx)-g(x0-dx))/(2*dx)