Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Expression (mathematics)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Polynomial evaluation === {{Main|Polynomial evaluation}} A polynomial consists of variables and [[coefficient]]s, that involve only the operations of [[addition]], [[subtraction]], [[multiplication]] and [[exponentiation]] to [[nonnegative integer]] powers, and has a finite number of terms. The problem of [[polynomial evaluation]] arises frequently in practice. In [[computational geometry]], polynomials are used to compute function approximations using [[Taylor polynomials]]. In [[cryptography]] and [[hash table]]s, polynomials are used to compute [[K-independent hashing|''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. For evaluating the [[univariate polynomial]] <math display="inline">a_nx^n+a_{n-1}x^{n-1}+\cdots +a_0,</math> the most naive method would use <math>n</math> multiplications to compute <math>a_nx^n</math>, use <math display="inline">n-1</math> multiplications to compute <math>a_{n-1} x^{n-1}</math> and so on for a total of <math display="inline">\frac{n(n+1)}{2}</math> multiplications and <math>n</math> additions. Using better methods, such as [[Horner's rule]], this can be reduced to <math>n</math> multiplications and <math>n</math> additions. If some preprocessing is allowed, even more savings are possible.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)