sympy/sympy — pull request #1995 by smichr (2013-04-09 21:58:40+00:00)
Title: factor_terms can remove radical from +/- base

Currently, radicals are only factored out of positive bases; now they can be factored from negative rational bases:

```
>>> root(3,5)+root(-9,5)
3**(1/5) + (-9)**(1/5)
>>> factor_terms(_,radical=1)
3**(1/5)*(1 + (-3)**(1/5))
>>> _.n()
2.50120038155859 + 0.912151942182797*I
>>> root(3,5)+root(-9,5)
3**(1/5) + (-9)**(1/5)
>>> _.n()
2.50120038155859 + 0.912151942182797*I
```