Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in factoring of general symbolic expressions #21529

Closed
rwst opened this issue Sep 18, 2016 · 6 comments
Closed

Bug in factoring of general symbolic expressions #21529

rwst opened this issue Sep 18, 2016 · 6 comments

Comments

@rwst
Copy link

rwst commented Sep 18, 2016

sage: (sin(x)^2-1).factor()
(sin(x) + 1)*(sin(x) - 1)
sage: f(x) = function('f')(x)
sage: (f(x)^2-1).factor()
(f(x) + 1)*(f(x) - 1)
sage: f(x).diff(x)
diff(f(x), x)
sage: (f(x).diff(x)^2-1).factor()
...
NotImplementedError: derivative

sage: SR((f(x).diff(x)^2-1)._maxima_().factor())
(diff(f(x), x) + 1)*(diff(f(x), x) - 1)

factor() falls back to Maxima if it cannot convert the expression to a polynomial. It fails to catch NotImplementedError from expression_conversion.py however.

Component: symbolics

Author: Ralf Stephan

Branch/Commit: 2ea5c31

Reviewer: Marc Mezzarobba

Issue created by migration from https://trac.sagemath.org/ticket/21529

@rwst rwst added this to the sage-7.4 milestone Sep 18, 2016
@rwst
Copy link
Author

rwst commented Sep 18, 2016

@rwst
Copy link
Author

rwst commented Sep 18, 2016

Author: Ralf Stephan

@rwst
Copy link
Author

rwst commented Sep 18, 2016

Commit: 2ea5c31

@rwst
Copy link
Author

rwst commented Sep 18, 2016

New commits:

2ea5c3121529: fix bug in factoring of general symbolic expressions

@mezzarobba
Copy link
Member

Reviewer: Marc Mezzarobba

@vbraun
Copy link
Member

vbraun commented Sep 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants