jax-js
    Preparing search index...

    Function polyval

    • Evaluate a polynomial at specific values.

      If p has length N, this returns the value p[0]*x**(N-1) + p[1]*x**(N-2) + ... + p[N-2]*x + p[N-1]. Additional dimensions in p are broadcast against x.

      Parameters

      • p: ArrayLike

        Array of polynomial coefficients along the leading axis, from highest degree to the constant term.

      • x: ArrayLike

        Values at which to evaluate the polynomial.

      Returns Array