Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Correction for previous commit fixing Cantor-Zassenhaus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Pierre Flori committed Apr 15, 2014
1 parent 4858154 commit a47c436
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sage/rings/polynomial/polynomial_element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ cdef class Polynomial(CommutativeAlgebraElement):
break
while d < allowed_deg_mult:
d = d+1
xq = xq**q
xq = pow(xq,q,self)
if d.divides(allowed_deg_mult):
break
A = self.gcd(xq-x)
Expand All @@ -1537,7 +1537,7 @@ cdef class Polynomial(CommutativeAlgebraElement):
while True:
# we waste a little effort here in computing the xq again.
d = d+1
xq = xq**q
xq = pow(xq,q,self)
if allowed_deg_mult.divides(d):
break
A = self.gcd(xq-x)
Expand Down Expand Up @@ -1586,7 +1586,6 @@ cdef class Polynomial(CommutativeAlgebraElement):
raise ValueError, "no roots F %s"%self
if q % 2 == 0:
T = x
cnt = 0
while True:
C = T % self
for i in range(degree-1):
Expand Down

0 comments on commit a47c436

Please sign in to comment.