Ask Your Question

Revision history [back]

"divides" in ring of integers

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

f=CyclotomicField(3)

r=f.ring_of_integers()

gens=r.gens()

x=1+gens[1]

r(x).divides(r(gens[1]))

returns "True". Have I overlooked something here?

"divides" in ring of integers

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

f=CyclotomicField(3)f = CyclotomicField(3)
r = f.ring_of_integers()
gens = r.gens()
x = 1 + gens[1]
r(x).divides(r(gens[1]))

r=f.ring_of_integers()

gens=r.gens()

x=1+gens[1]

r(x).divides(r(gens[1]))

returns "True". Have I overlooked something here?

click to hide/show revision 3
retagged

"divides" in ring of integers

It seems the method for "divides" is inherited to a ring_of_integers, but has undesirable behaviour:

f = CyclotomicField(3)
r = f.ring_of_integers()
gens = r.gens()
x = 1 + gens[1]
r(x).divides(r(gens[1]))

returns "True". Have I overlooked something here?