Rewriting polynomials for computers

Click For Summary
SUMMARY

The discussion centers on rewriting polynomials for computational efficiency using Horner's Rule. This method transforms a polynomial expression into a nested multiplication and addition format, which is more suitable for computer processing. The participants confirm that Horner's Rule is the correct terminology and suggest looking for implementations in tools like Sage, MATLAB, and Mathematica. The consensus is that there are algorithms available for this transformation, and additional resources can be found online.

PREREQUISITES
  • Understanding of polynomial expressions and their structure
  • Familiarity with Horner's Rule for polynomial evaluation
  • Basic knowledge of programming in Sage, MATLAB, or Mathematica
  • Concept of algorithm implementation in computational mathematics
NEXT STEPS
  • Research Horner's Rule implementation in Sage
  • Explore MATLAB functions for polynomial evaluation
  • Learn about the algorithmic efficiency of Horner's Rule
  • Investigate Mathematica's capabilities for polynomial manipulation
USEFUL FOR

Mathematicians, computer scientists, and software developers interested in optimizing polynomial evaluations and enhancing computational efficiency in mathematical software.

octohydra
Messages
7
Reaction score
0
Suppose I have a REALLY big polynomial:
a_0 + a_1 x + a_2 x^2 + a_3 x^3+a_4 x^4+ \cdots + a_n x^n
I can rewrite the polynomial as a combination of multiplication and addition operators (instead of exponents) that a computer tends to like as such:
a_0 + x \left( a_1 + x \left( a_2 + x \left( a_3 + x \left(a_4 + \cdots + a_n x \left)\right. \cdots \right)\right)\right)\right)

  • Does this process have a name?
  • Is there an algorithm to do this?
  • Is there an implementation of this on Sage or MATLAB/Octave or Mathematica?
 
Physics news on Phys.org
I believe this is called Horner's Rule. I'm sure there's an algorithm, but I don't recall what it is. Check online for more information about it.

I don't know what MATLAB and the others have for Horner's Rule.
 
Mark44 said:
I believe this is called Horner's Rule. I'm sure there's an algorithm, but I don't recall what it is. Check online for more information about it.

I don't know what MATLAB and the others have for Horner's Rule.


http://en.wikipedia.org/wiki/Horner_scheme"

Thanks! The information at the wiki page is more than plenty for me.
 
Last edited by a moderator:

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
Replies
6
Views
2K
  • · Replies 62 ·
3
Replies
62
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
12
Views
2K