Lagrange, Newton, Interpolation, Python, Mathematics.
1.3862944, 1.7917595, 1.6094379, 1.0986123 , 0.4054641, 0.9162907, 1.2527630] We can use our newton_interpolation function to solve for ln(2) a = newton_interpolation(x, y, 2) df = pd.DataFrame(a, columns=['f(x)','error']) and it will show the following data frame: Divided difference dataframe