Skip to main content

lagrange_basis_scalar

Function lagrange_basis_scalar 

Source
pub fn lagrange_basis_scalar(xi: Scalar, xs: &[Scalar]) -> Scalar
Expand description

Compute the Lagrange basis coefficient \lambda_i for evaluating the polynomial at x = 0, given the full set of participating x-coords xs and the specific coordinate xi.