Function tbs::poly::interpolate_zero
source · pub fn interpolate_zero<G, S>(
elements: impl Iterator<Item = (S, G)> + Clone
) -> Gwhere
G: Copy + Mul<S, Output = G> + Add<G, Output = G>,
S: Copy + Field,
Expand description
Interpolates the constant factor of a polynomial defined by the points
supplied in elements
.
Panics
If less than 2 points are supplied.