Comment #3 on issue 2390 by [email protected]: factor(sqrt(x*y),
expand=False) -> sqrt(x)*sqrt(y)
http://code.google.com/p/sympy/issues/detail?id=2390
Actually, if we just let autosimplification handle the results of factoring
a base i think things will work. An integer exponent will always allow the
bases to separate, so `(x**2-1)**3` will yield `(x+1)**3*(x-1)**3` and
positive bases will always separate so `sqrt(((x+y)*(y+z)).expand())` will
factor into a product if all symbols are positive.
I'm not sure why factor won't factor something like this that has integer
exponent and positive factors:
>>> factor((((p+q)*(p+o)).expand())**i)
(o*p + o*q + p**2 + p*q)**i
(Though, by more introspective processing, separatevars gives
>>> separatevars(_)
(o + p)**i*(p + q)**i
--
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.