https://medium.com/@monocosmo77/working-with-lagrange-polynomials-part2-artificial-intelligence-461601b0274