Numpy Gradient Function Mathematica