ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 03 Jul 2013 07:24:03 +0200ideal primality in a polynomial ring with integer coefficientshttps://ask.sagemath.org/question/10313/ideal-primality-in-a-polynomial-ring-with-integer-coefficients/Hello,
how primality of an ideal in a polynomial ring with integer coefficients can be checked?
SageMath (5.7) tells me 'notImplementedError'.
Example:
R = ZZ[x]
I = R.ideal(7)
I.is_prime()
# leads to NotImplementedError
In addition, does someone know a good reference to the related theory?
Thanks,
Jackjack77Wed, 03 Jul 2013 07:24:03 +0200https://ask.sagemath.org/question/10313/Integer vs ZZhttps://ask.sagemath.org/question/9968/integer-vs-zz/What's the difference between sage class ZZ (rings/integer_ring.pyx) and Integer (rings/integer.pyx)?
Is one preferred over the other in some cases? Do they provide different functionality?
Maybe instances of Integer are elements of ZZ?!
# Example:
a = ZZ(10)
b = Integer(3)
c = a + b
print a, b, c
print "Type of elements:", type(a), "vs", type(b), "vs", type(c)
print "Type of classes: ", ZZ, "vs", Integermatthew.weippertTue, 02 Apr 2013 10:46:47 +0200https://ask.sagemath.org/question/9968/