From c93e84048964194e5674e859d6bd8827010f09f6 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 19:17:32 +0000 Subject: * src/algebra/: Systematically use negative? when comparing for greater than 0. --- src/algebra/listgcd.spad.pamphlet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/algebra/listgcd.spad.pamphlet') diff --git a/src/algebra/listgcd.spad.pamphlet b/src/algebra/listgcd.spad.pamphlet index 69d50396..fac17b6d 100644 --- a/src/algebra/listgcd.spad.pamphlet +++ b/src/algebra/listgcd.spad.pamphlet @@ -118,7 +118,7 @@ HeuGcd (BP):C == T empty? lind => member?(1,listdeg) => lincase(listdeg,listf) localgcd listf - or/[n>0 for n in listdeg] => cons(1$BP,listf) + or/[positive? n for n in listdeg] => cons(1$BP,listf) lclistf:List(Z):= [leadingCoefficient f for f in listf] d:=lintgcd(lclistf) d=1 => cons(1$BP,listf) @@ -181,7 +181,7 @@ HeuGcd (BP):C == T minpol:=1$BP -- extract a monomial gcd mdeg:= "min"/[minimumDegree f for f in listf] - if mdeg>0 then + if positive? mdeg then minpol1:= monomial(1,mdeg) listf:= [(f exquo minpol1)::BP for f in listf] minpol:=minpol*minpol1 -- cgit v1.2.3