Comment #12 on issue 2050 by [email protected]: factoring of powers with
Rational bases and hidden positive bases
http://code.google.com/p/sympy/issues/detail?id=2050
From the OP, the single term factors:
>>> factor(sqrt(1-x**2))
sqrt(-x + 1)*sqrt(x + 1)
But when the other term is added, it doesn't factor
>>> factor(sqrt(1-x**2) + sqrt(1-x))
sqrt(-x + 1) + sqrt(-x**2 + 1)
>>> factor(sqrt(1-x)+factor(sqrt(1-x**2)))
sqrt(-x + 1)*(sqrt(x + 1) + 1)
The use of powdenest for the other example gives this:
>>> factor(4**x+2**x)
2**x + 4**x
>>> factor(powdenest(_))
2**x*(2**x + 1)
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.