def _append_eq(eq, result, res, delete_soln, n=None):
    u = Dummy('u')
    if n:
        eq = eq.subs(n, 0)
    satisfy = checksol(u, u, eq, minimal=True)
    if (satisfy is False):
        delete_soln = True
        res = {}
    else:
        result.append(res)
    return (result, res, delete_soln)
def _append_eq(eq, result, res, delete_soln, n=None):
    u = Dummy('u')
    if n:
        eq = eq.subs(n, 0)
    satisfy = checksol(u, u, eq, minimal=True)
    if (satisfy is False):
        delete_soln = True
        res = {}
    else:
        result.append(res)
    return (result, res, delete_soln)