Crate lagrangian_interpolation

Source

Functions§

lagrange_interpolate
This function interpolates a function’s value when passed a Vec of precomputed points and the x-value at which to evaluate it. It uses a sum of Lagrange polynomials. When interpolating a polynomial on n points, if the polynomial’s degree is less than n, the calculation is exact.