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.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/pgcd.spad.pamphlet b/src/algebra/pgcd.spad.pamphlet
index 2caf53de..eb38b2c1 100644
--- a/src/algebra/pgcd.spad.pamphlet
+++ b/src/algebra/pgcd.spad.pamphlet
@@ -183,7 +183,7 @@ PolynomialGcdPackage(E,OV,R,P):C == T where
(gd1,gd2):=(l,l)
ul:=completeEval(l,lvar1,lval)
dl:=degree ul
- if degree gcd(ul,differentiate ul) ~=0 then
+ if not zero? degree gcd(ul,differentiate ul) then
newchoice:=good(l,lvar1,ltry)
ul:=newchoice.upol
ltry:=newchoice.inval
@@ -195,7 +195,7 @@ PolynomialGcdPackage(E,OV,R,P):C == T where
d:SUP:=gcd(cons(ul,ulist))
if degree d =0 then return gd1
lquo:=(ul exquo d)::SUP
- if degree lquo ~=0 then
+ if not zero? degree lquo then
lgcd:=gcd(cons(leadingCoefficient l,lcpol))
(gdl:=lift(l,d,lquo,lgcd,lvar1,ldeg,lval)) case "failed" =>
return notCoprime(g,p2,ldeg,lvar1,ltry)