def _minpoly_add(x, dom, *a):
    'Returns ``minimal_polynomial(Add(*a), dom)``.'
    mp = _minpoly_op_algebraic_element(Add, a[0], a[1], x, dom)
    p = (a[0] + a[1])
    for px in a[2:]:
        mp = _minpoly_op_algebraic_element(Add, p, px, x, dom, mp1=mp)
        p = (p + px)
    return mp
Returns ``minimal_polynomial(Add(*a), dom)``.
def _minpoly_add(x, dom, *a):
    
    mp = _minpoly_op_algebraic_element(Add, a[0], a[1], x, dom)
    p = (a[0] + a[1])
    for px in a[2:]:
        mp = _minpoly_op_algebraic_element(Add, p, px, x, dom, mp1=mp)
        p = (p + px)
    return mp