I have been reading about different ways to interpolate, for example- this article. It recommends using barycentric_lagrange instead of lagrange because it is more stab