Lagrange, Newton, Interpolation, Python, Mathematics.
product = y[i] for j in range(n): if i != j: product = product*(xx - x[j])/(x[i]-x[j]) sum = sum + product return sum Using the same datapoints from the latter approach, we could also solve for the estimated value of ln(2) using Lagrange polynomial and graph each value of different order.