

def _dup_ff_trivial_gcd(f, g, K):
    'Handle trivial cases in GCD algorithm over a field. '
    if (not (f or g)):
        return ([], [], [])
    elif (not f):
        return (dup_monic(g, K), [], [dup_LC(g, K)])
    elif (not g):
        return (dup_monic(f, K), [dup_LC(f, g)], [])
    else:
        return None

dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py _dup_ff_trivial_gcd/VarMisuse@94/139 `K`->`g`