Jump to content

Polynomial long division: Difference between revisions

m
(OCaml example)
Line 342:
 
let zip op p q =
let gap = (degList.length p) - (degList.length q) in
if gap = 0 then List.map2 op p q else
if gap > 0 then List.map2 op p (pad gap q)
Line 395:
r = -23.*x + -14.
</pre>
 
=={{header|Python}}==
{{works with|Python 2.x}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.