@public
def count_roots(f, inf=None, sup=None):
 try:
  F = Poly(f, greedy=False)
 except GeneratorsNeeded:
  raise PolynomialError(("can't count roots of %s, not a polynomial" % f))
 return F.count_roots(inf=inf, sup=sup)

@ public def count_roots ( f , inf = None , sup = None ) : try : F = Poly ( f , greedy = False ) except GeneratorsNeeded : raise PolynomialError ( ( "can't count roots of %s, not a polynomial" % f ) ) return F . count_roots ( inf = inf , sup = sup )
return the number of roots of f in [inf .