We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is impossible to create ideals in rings of the form Integers mod n:
sage: R = Integers(10) sage: R.ideal(1) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) /home/masgaj/.sage/temp/host_56_150/5831/_home_masgaj__sage_init_sage_0.py in <module>() /local/jec/sage-3.4.1.alpha0/local/lib/python2.5/site-packages/sage/rings/quotient_ring.pyc in ideal(self, *gens, **kwds) 487 gens = gens[0] 488 from sage.rings.polynomial.multi_polynomial_libsingular import MPolynomialRing_libsingular --> 489 if not isinstance(self.__R,MPolynomialRing_libsingular) and not self.__R._has_singular: 490 # pass through 491 MPolynomialRing_generic.ideal(self,gens,**kwds) AttributeError: 'sage.rings.integer_ring.IntegerRing_class' object has no attribute '_has_singular' sage: R.ideal([2,4]) --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) (as above)
It looks as if the ideal() method for class QuotientRing_generic is only really geared to polynomial ring quotients.
QuotientRing_generic
Component: algebra
Author: William Stein
Reviewer: Rob Beezer
Merged: sage-4.3.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/5666
The text was updated successfully, but these errors were encountered:
Attachment: trac_5666.patch.gz
Sorry, something went wrong.
Passes tests and allows creation of ideals within rings of integers mod n.
But it seems the resulting ideals still need some work, for example _contains_() in rings.ideal.Ideal_generic is not implemented.
_contains_()
rings.ideal.Ideal_generic
sage: R=Integers(40) sage: Q=R.ideal([2,3]) sage: type(Q) <class 'sage.rings.ideal.Ideal_generic'> sage: 1 in Q ------------------ NotImplementedError <snip>
No branches or pull requests
It is impossible to create ideals in rings of the form Integers mod n:
It looks as if the ideal() method for class
QuotientRing_generic
isonly really geared to polynomial ring quotients.
Component: algebra
Author: William Stein
Reviewer: Rob Beezer
Merged: sage-4.3.1.rc1
Issue created by migration from https://trac.sagemath.org/ticket/5666
The text was updated successfully, but these errors were encountered: