return sum

def solve(y, polys):
    lo = 0
hi = y
while lo <= hi:
    mid = (lo + hi) // 2
if maybeRightX(mid, polys) < y:
    lo = mid + 1
else:
    hi = mid - 1
return hi + 1
SymPy cannot solve polynomial equation of 4th order