Updates:
        Status: Started
        Owner: mattpap
        Cc: -mattpap
        Labels: Milestone-Release0.7.0

Comment #2 on issue 1899 by mattpap: factor(3 + x - x*(1 + x) + x**2) != 3
http://code.google.com/p/sympy/issues/detail?id=1899

This behavior of factor() is just a simple bug. In a moment I'm going for a plane to Reno (NV), so I will fix it when I arrive there (the fix will be available in polys9).

Should factor(p + q), where p and q are already factored, try to expand and
refactor the whole thing?

I think it should, as factor() by its definition should do its best to return Mul and return Add only when the input polynomial is irreducible over the specified domain.

Maybe we should add another function, factor_terms(), to apply factor() on each term alone in an Add. Actually, I planned to add a general function for this purpose, say use() (or something, but apply() is built-in), to use a certain function on specified parts of a larger expression. For example use(factor, level=1) would apply factor()
to elements of Add.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to