Lably
Skip to content

Polynomial evaluation

  • 6 min read
  • 4 chapters

Related on Lably

Through Mathematics, Computer science and Polynomial

For evaluating the univariate polynomial anxn+an−1xn−1+⋯+a0, the most naive method would use n multiplications to compute anxn, use n−1 multiplications to compute an−1xn−1 and so on for a total of n(n+1)2 multiplications and n additions. Using better methods, such as Horner's rule, this can be reduced to n multiplications and n additions. If some preprocessing is allowed, even more savings are possible.

Background

This problem arises frequently in practice. In computational geometry, polynomials are used to compute function approximations using Taylor polynomials. In cryptography and hash tables, polynomials are used to compute k-independent hashing.

In the former case, polynomials are evaluated using floating-point arithmetic, which is not exact. Thus different schemes for the evaluation will, in general, give slightly different answers. In the latter case, the polynomials are usually evaluated in a finite field, in which case the answers are always exact.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Algebra