Lagrange, Newton, Interpolation, Python, Mathematics.
#length/number of datapoints n = len(x) #divided difference initialization fdd = [[None for x in range(n)] for x in range(n)] #f(X) values at different degrees yint = [None for x in range(n)] #error value ea = [None for x in range(n)] #finding divided difference for i in range(n): fdd[i][0] = y[i]