sympy/sympy — pull request #2006 by pernici (2013-04-12 18:06:41+00:00)
Title: Cubic

added ``_try_rescale`` in ``roots``

```
>>> from sympy import *
>>> from sympy.abc import x
>>> eq = expand(((x**2-1)*(x-2)).subs({x:x*(1+sqrt(2))}))
>>> solve(eq, x)
[-2 + 2*sqrt(2), -1 + sqrt(2), -sqrt(2) + 1]
>>> count_ops(_)
10
```
while in master ``count_ops`` gives 732