(f, K, inf, sup, basis=False, sqf=False)
return [], f
Handle special case of CF algorithm when ``f`` is homogeneous.
Handle special case of CF algorithm when ``f`` is homogeneous.
Handle special case of CF algorithm when f is homogeneous .
def _isolate_zero(f, K, inf, sup, basis=False, sqf=False):
    """Handle special case of CF algorithm when ``f`` is homogeneous. """
    j, f = dup_terms_gcd(f, K)

    if j > 0:
        F = K.get_field()

        if (inf is None or inf <= 0) and (sup is None or 0 <= sup):
            if not sqf:
                if not basis:
                    return [((F.zero, F.zero), j)], f
                else:
                    return [((F.zero, F.zero), j, [K.one, K.zero])], f
            else:
                return [(F.zero, F.zero)], f

    return [], f
def _isolate_zero ( f , K , inf , sup , basis = False , sqf = False ) : j , f = dup_terms_gcd ( f , K ) if j > 0 : F = K . get_field ( ) if ( inf is None or inf <= 0 ) and ( sup is None or 0 <= sup ) : if not sqf : if not basis : return [ ( ( F . zero , F . zero ) , j ) ] , f else : return [ ( ( F . zero , F . zero ) , j , [ K . one , K . zero ] ) ] , f else : return [ ( F . zero , F . zero ) ] , f return [ ] , f