previous up next contents
Previous: 2 Algorithms to compute Up: From Euclid to Padé Next: 4 Continued fractions   Contents


3 Polynomials

Since the ring maths is Euclidean, Algorithm 3 can also be applied to polynomials. But, to obtain an efficient code, some details have to be fixed. In first place, equality to 0 is not so simple as in maths. You have to expand your polynomials to their reduced normal form since e.g., maths answers maths. In second place, you gain efficiency when denominators are avoided. Therefore, we take the content maths of the quotient maths i.e., the maths of the coefficients of maths, and use maths. The matricial version of the algorithm is given in Algorithm 6.


maths

Exemplifying this algorithm with maths and maths, we obtain Figure 3.

FIG.  3: A polynomial example.
maths


previous up next contents
Previous: 2 Algorithms to compute Up: From Euclid to Padé Next: 4 Continued fractions   Contents


douillet@ensait.fr
2005-02-09