diff options
Diffstat (limited to 'src/algebra/ddfact.spad.pamphlet')
-rw-r--r-- | src/algebra/ddfact.spad.pamphlet | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/algebra/ddfact.spad.pamphlet b/src/algebra/ddfact.spad.pamphlet index 3871a8b8..97b8f811 100644 --- a/src/algebra/ddfact.spad.pamphlet +++ b/src/algebra/ddfact.spad.pamphlet @@ -101,12 +101,12 @@ DistinctDegreeFactorize(F,FP): C == T factlist : List(ParFact) :=empty() llf : List FFE fln :List(FP) := empty() - if (lcm:=leadingCoefficient m)^=1 then m:=(inv lcm)*m + if (lcm:=leadingCoefficient m)~=1 then m:=(inv lcm)*m llf:= factorList(squareFree(m)) for lf in llf repeat d1:= lf.xpnt pol := lf.fctr - if (lcp:=leadingCoefficient pol)^=1 then pol := (inv lcp)*pol + if (lcp:=leadingCoefficient pol)~=1 then pol := (inv lcp)*pol degree pol=1 => factlist:=cons([pol,d1]$ParFact,factlist) fln := appl(pol) factlist :=append([[pf,d1]$ParFact for pf in fln],factlist) @@ -159,7 +159,7 @@ DistinctDegreeFactorize(F,FP): C == T g := gcd(v-mon,u) dg := degree g dg =0 => "next k1" - if leadingCoefficient g ^=1 then g := (inv leadingCoefficient g)*g + if leadingCoefficient g ~=1 then g := (inv leadingCoefficient g)*g ddfact := cons([k1,g]$fact,ddfact) testirr => return ddfact u := u quo g @@ -222,7 +222,7 @@ DistinctDegreeFactorize(F,FP): C == T fln : List(FP) :=empty() --make m monic - if (lcm := leadingCoefficient m) ^=1 then m := (inv lcm)*m + if (lcm := leadingCoefficient m) ~=1 then m := (inv lcm)*m --is x**d factor of m? if (d := minimumDegree m)>0 then |