Polynomial long division: Difference between revisions
Undo revision 105246 by 75.149.84.28 (talk) [This change resulted in the wrong result]
MaiconSoft (talk | contribs) (Added Delphi example) |
Alextretyak (talk | contribs) (Undo revision 105246 by 75.149.84.28 (talk) [This change resulted in the wrong result]) |
||
Line 2,693:
from itertools import izip
def degree(poly):
Line 2,710 ⟶ 2,709:
mult = q[dN - dD] = N[-1] / float(d[-1])
d = [coeff*mult for coeff in d]
N = [
dN = degree(N)
r = N
|