Polynomial synthetic division: Difference between revisions

→‎{{header|Python}}: Clarified description
No edit summary
(→‎{{header|Python}}: Clarified description)
Line 59:
 
=={{header|Python}}==
Here is an extended synthetic division algorithm, which means that it supports a divisor polynomial (instead of just a monomial or a /binomial). It also supports non-monic polynomials (polynomials which first coefficient is different than 1). Polynomials are represented by lists of coefficients with decreasing degree (left-most is the major degree , right-most is the constant).
{{works with|Python 2.x}}
<lang python># -*- coding: utf-8 -*-
Anonymous user