Skip to main content

evaluate_univariate

Function evaluate_univariate 

Source
pub fn evaluate_univariate<F: FieldOps>(coeffs: &[F], x: &F) -> F
Expand description

Evaluates a univariate polynomial given by its monomial coefficients.

Most callers reach for this to batch several claims under one challenge. Reading coeffs as the claims and x as the challenge, the result is sum_i claim_i * x^i.

ยงArguments

  • coeffs - coefficients ordered from the low-degree term to the high-degree term
  • x - the point to evaluate at