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

Ideals in multivariate polynomial rings with no variables raise exception on comparison #3028

Closed
sagetrac-broune mannequin opened this issue Apr 26, 2008 · 3 comments

Comments

@sagetrac-broune
Copy link
Mannequin

sagetrac-broune mannequin commented Apr 26, 2008

This code

ring = PolynomialRing(QQ, names=[])

id = ring.ideal(0)

print id == id

gives the following error message


<type 'exceptions.StopIteration'> Traceback (most recent call last)

/Users/bjarke/sync/ in ()

/Users/bjarke/sync/element.pyx in sage.structure.element.Element.richcmp (sage/structure/element.c:4558)()

/Users/bjarke/sync/element.pyx in sage.structure.element.Element._richcmp (sage/structure/element.c:4453)()

/Users/bjarke/sage-3.0/local/lib/python2.5/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py in cmp(self, other)
347 True
348 """
--> 349 l = self.groebner_basis()
350 r = other.groebner_basis()
351 return cmp(r,l)

/Users/bjarke/sage-3.0/local/lib/python2.5/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py in groebner_basis(self, algorithm, *args, **kwds)
1836 except TypeError: # conversion to Singular not supported
1837 # we might want to print a warning here
-> 1838 gb = toy_buchberger.buchberger_improved(self, *args, **kwds)
1839 elif algorithm.startswith('singular:'):
1840 gb = self._groebner_basis_using_singular(algorithm[9:])

/Users/bjarke/sage-3.0/local/lib/python2.5/site-packages/sage/rings/polynomial/toy_buchberger.py in buchberger_improved(F)
232 print "%d reductions to zero."%(reductions_to_zero)
233
--> 234 return Sequence(inter_reduction(G))
235
236 def update(G,B,h):

/Users/bjarke/sage-3.0/local/lib/python2.5/site-packages/sage/rings/polynomial/toy_buchberger.py in inter_reduction(Q)
324 Q -- a set of polynomials
325 """
--> 326 base_ring = iter(Q).next().base_ring()
327 Q = set(Q)
328 while True:

<type 'exceptions.StopIteration'>:

Component: commutative algebra

Keywords: multivariate polynomial ring, no variables

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

@sagetrac-broune sagetrac-broune mannequin added this to the sage-3.0.2 milestone Apr 26, 2008
@sagetrac-broune sagetrac-broune mannequin assigned malb Apr 26, 2008
@sagetrac-broune sagetrac-broune mannequin changed the title Ideals in multivariate polynomial rings raise exceptions on comparison Ideals in multivariate polynomial rings with no variables raise exception on comparison Apr 26, 2008
@sagetrac-broune
Copy link
Mannequin Author

sagetrac-broune mannequin commented May 7, 2008

Attachment: idcomp.changeset.gz

@sagetrac-broune sagetrac-broune mannequin assigned sagetrac-broune and unassigned malb May 7, 2008
@sagetrac-cwitty
Copy link
Mannequin

sagetrac-cwitty mannequin commented May 10, 2008

comment:3

Code looks good, doctests pass in sage/rings/polynomial. Positive review.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented May 11, 2008

comment:4

Merged in Sage 3.0.2.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed May 11, 2008
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

1 participant