prevent solve_radical from growing unboundedly