aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/pgcd.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/pgcd.spad.pamphlet')
-rw-r--r--src/algebra/pgcd.spad.pamphlet5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/algebra/pgcd.spad.pamphlet b/src/algebra/pgcd.spad.pamphlet
index edbbccb0..f06e27af 100644
--- a/src/algebra/pgcd.spad.pamphlet
+++ b/src/algebra/pgcd.spad.pamphlet
@@ -304,8 +304,9 @@ PolynomialGcdPackage(E,OV,R,P):C == T where
listpol:=listpol.rest
nolift:Boolean:=true
uf: SUP
- for uf in listpol repeat
- --note uf and d not necessarily primitive
+ for fs in tails listpol while nolift repeat
+ uf := first fs
+ --note uf and d not necessarily primitive
degree gcd(uf,d) =0 => nolift:=false
nolift => ["notCoprime"]
f:SUPP:=([p1,p2]$List(SUPP)).(position(uf,listpol))