def make_poly(facts): """ Create polynomial from factors """ poly = [1] for factor in facts: poly = polymul(poly, [1, -factor]) return real(poly)