Lagrange, Newton, Interpolation, Python, Mathematics.
array of the interpolated values for different orders and their respective relative errors that would be used for visualization. (But you can modify the code to return an array of interpolated values in different orders if you don’t need to visualize) def newton_interpolation(x, y, xi):