@public
def real_roots(f, multiple=True):
 try:
  F = Poly(f, greedy=False)
 except GeneratorsNeeded:
  raise PolynomialError(("can't compute real roots of %s, not a polynomial" % f))
 return F.real_roots(multiple=multiple)

@ public def real_roots ( f , multiple = True ) : try : F = Poly ( f , greedy = False ) except GeneratorsNeeded : raise PolynomialError ( ( "can't compute real roots of %s, not a polynomial" % f ) ) return F . real_roots ( multiple = multiple )
return a list of real roots with multiplicities of f .