Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33640: sage fails to factor some easy expressions
As reported on [https://groups.google.com/g/sage- devel/c/Ca661TP_3Ug/m/f2lZtUXLAwAJ sage-devel], sage fails to factor expressions that expand to something very easy, such as `x^2` or `0`. Instead, it returns the original expression. {{{ sage: ((x + 1)^2 - 2*x - 1).factor() # bad (should be x^2) (x + 1)^2 - 2*x - 1 sage: ((x + 1)^2 - x^2 - 2*x - 1).factor() # bad (should be 0) (x + 1)^2 - x^2 - 2*x - 1 sage: ((x + 2)^2 - 2*x - 3).factor() # good (x + 1)^2 }}} URL: https://trac.sagemath.org/33640 Reported by: gh-DaveWitteMorris Ticket author(s): Frédéric Chapoton Reviewer(s): David Lowry-Duda
- Loading branch information