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 increasingdecreasing degree (left-most is the constantmajor degree , right-most is the major degreeconstant).
{{works with|Python 2.x}}
<lang python># -*- coding: utf-8 -*-
Anonymous user