Jump to content

Polynomial synthetic division: Difference between revisions

m
(→‎{{header|Python}}: Clarified description)
m (→‎{{header|Python}}: Fix spelling)
Line 74:
coef = out[i]
if coef != 0: # useless to multiply if coef is 0
for j in xrange(1, len(divisor)): # in synthetic division, we always skip the first coefficient of the divisiordivisor,
# because it's only used to normalize the dividend coefficients
out[i + j] += -divisor[j] * coef
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.