-
-
Notifications
You must be signed in to change notification settings - Fork 565
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 factorization of simple symbolic expressions #27304
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
in the same vein :
which is true, but largely not what we seek...
which is false. But :
Deserves to be |
comment:3
A difference between Sage 8.3 (where the factorization works) and Sage 8.4.beta4 is that in Sage 8.3 the factorization is performed by Maxima: cf. these lines of
while in Sage 8.4.beta4 and later, it is performed by pynac (via the function
Maxima is correct there: in Sage 8.7.beta3, we have
So I would say it is a pynac bug. |
Changed keywords from factor, exponential to factor, exponential, pynac |
comment:5
The change from Maxima factorization to Pynac one, which triggered the bug, was introduced in #23835, which has been merged in Sage 8.4.beta3. |
This comment has been minimized.
This comment has been minimized.
comment:7
This sage-support post might be related... |
comment:8
Moving all blocker/critical issues from 8.7 to 8.8. |
This comment has been minimized.
This comment has been minimized.
comment:12
Would it be an option to let pynac handle factorization only when called on a rational function and call maxima (just as it was before #23835) otherwise? |
comment:13
Replying to @behackl:
Seconded : If that means reverting the changes brought in by #23835, and if that does not break other changes intervening since, this would be a reasonable option (even if bad for performance), and would give people who know what they're talking about time to poner our next move... |
comment:14
Replying to @EmmanuelCharpentier:
Idem, +1. This sounds a good strategy for the short term. It would indeed be a pity if Sage 8.8 is shipped with such a bug. |
comment:15
Replying to @egourgoulhon:
I already thought a bit about it, so yes, I will prepare a branch with the (short-term) bugfix I proposed above. |
comment:16
Replying to @behackl:
Great! |
Commit: |
comment:17
This is what I would suggest. I'm entirely open for suggestions regarding the name as well as the code for Locally, I only checked the doctests in New commits:
|
Author: Benjamin Hackl |
Reviewer: Emmanuel Charpentier |
comment:18
On top of 8.8.beta5+#27738, builds and passes
which passes when ran standalone. ==> |
comment:19
Thank you Benjamin! |
Changed branch from u/behackl/simple-factorization-rational to |
As reported in this ask.sagemath question, we have currently (Sage 8.7.beta3):
as well as
Another example of erroneous result exhibited in https://groups.google.com/d/msg/sage-devel/ytLqIb4soLw/c14ZKGqcAAAJ is
This bug is there since at least Sage 8.4.beta4. It is not in Sage 8.3, hence it must have been introduced between 8.4.beta0 and 8.4.beta4. It seems to have been introduced in #23835 (see comment:5).
CC: @rwst @sagetrac-bpage
Component: symbolics
Keywords: factor, exponential, pynac
Author: Benjamin Hackl
Branch/Commit:
7c2432c
Reviewer: Emmanuel Charpentier
Issue created by migration from https://trac.sagemath.org/ticket/27304
The text was updated successfully, but these errors were encountered: