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
Redundant minus sign in PolyDict polynomial #7119
Comments
comment:1
Attachment: trac7119.patch.gz The patch corrects the bug. |
Author: Kwankyu Lee |
comment:2
I think a doctest should be added for the case that the patch fixes. ~ adam |
comment:3
Attachment: trac_#7119.patch.gz The new patch includes doctests and a bugfix of the patch itself. Martin says: Alex Ghitza wrote a patch to fix printing of multivariate polynomials in which might contain your fix. However, it needs some work before it can go in. However, it seems to me that Alex Ghitza's patch is independent with the current patch. |
comment:4
The present bug results from the class PolyDict in sage/rings/polynomial/ I think patching the polydict.pyx so as not to rely on the "zero" paramter might be better way to correct the bug. But this is out of my reach. |
comment:5
What does the TESTS: label do? When I build the reference the Test section is also included. In which case, why not just add to the Examples section (separated by a line with a :: to start a new section)? I think it would be easier to use something like:
Then you don't need the long import statement. What do you think? Adam |
Reviewer: Adam Webb |
suggested changes |
comment:7
Attachment: trac_7119_b.patch.gz I added a "suggested changes" patch just to clarify. ~ Adam |
comment:8
Hi Adam, The bug is in the polydict engine of multivariate polynomial rings. So your doctest does not check the bug. About the tests section in the docstring, see this thread in sage-devel: http://groups.google.com/group/sage-devel/browse_frm/thread/2c86e8b59d670502 To summarize, your "suggested changes" should be reverted. Kwankyu |
comment:9
Hi, That all sounds fine to me. In that case my suggested patch can be ignored. If you know how, you can delete it. In any case, trac_#7119.patch would be the correct patch to apply. Cheers, Adam |
Merged: sage-4.2.alpha0 |
There is a tiny bug in the polydict implementation of multivariate
polynomial ring.
The minus sign in "-x" is redundant
Component: basic arithmetic
Author: Kwankyu Lee
Reviewer: Adam Webb
Merged: sage-4.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/7119
The text was updated successfully, but these errors were encountered: