-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
ZeroDivisionError while reducing a polynomial w.r.t. the zero ideal #34105
Comments
comment:1
so the generic code in |
Branch: public/34105 |
Commit: |
Author: Dave Morris |
comment:4
Btw, it's not directly related to this bug report, but I see a discrepancy in
Shouldn't it be always a tuple? |
comment:6
Why did you remove this? lI = len(I)
I = list(I) The code is for performance. |
Changed branch from public/34105 to public/34105r1 |
comment:8
Thanks for your comments! The code looked unpythonic to me, and I wasn't thinking about performance. Indeed, I don't know python well enough to understand most performance issues, but I can understand that having Instead of
I suppose that is also for performance (because the compiler does not know that the length of Part of the reason I made changes is that (PS: I also rebased on 9.7b5 and fixed a whitespace issue -- I had spaces at the start of three blank lines.) New commits:
|
comment:9
Changing On the other hand, I think that this The real problem is that It is surprising to me that sage still has this bug, thinking the maturity of sage... |
comment:10
I don't agree that this is a bug or mathematical error (because I seem to use terminology differently than you do), but the documentation should be clarified. For me, a generating set of an ideal is analogous to a spanning set of a vector space: there is no assumption that the set is irredundant or does not contain zero. The docstring of
On the other hand, the docstring of A related issue is that I'm not so sure that the zero polynomial has a leading monomial:
Perhaps this should return |
comment:11
I forgot to mention a point on which I think we agree: the |
comment:12
Replying to @DaveWitteMorris:
Yes. The zero ideal is generated by an empty set of generators. Hence It may be related with the fact that For this ticket, we may skip |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Setting zero element as the sole generator for a zero ideal seems pervasive in sage. The simplest solution for this ticket seems removing zeros for reduction. |
Changed author from Dave Morris to Dave Morris, Kwankyu Lee |
Reviewer: Kwankyu Lee, Dave Morris |
comment:17
Is the solution okay with you? |
comment:19
Thanks! |
Changed branch from public/34105r1 to |
The following code produces
ZeroDivisionError
:Interestingly, the error goes away if
K.<x,y> = AA[]
is replaced withK.<x> = AA[]
or withK.<x,y> = QQ[]
.CC: @tscrim
Component: algebra
Author: Dave Morris, Kwankyu Lee
Branch/Commit:
0b16491
Reviewer: Kwankyu Lee, Dave Morris
Issue created by migration from https://trac.sagemath.org/ticket/34105
The text was updated successfully, but these errors were encountered: