Anonymous user
Polynomial synthetic division: Difference between revisions
→{{header|Python}}: Fixed coefficients ordering
(→{{header|Python}}: Added details about the ordering of coefficients) |
(→{{header|Python}}: Fixed coefficients ordering) |
||
Line 3:
=={{header|Python}}==
Here is an extended synthetic division algorithm, which means that it supports a divisor polynomial (instead of 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
{{works with|Python 2.x}}
<lang python># -*- coding: utf-8 -*-
|