diff options
author | dos-reis <gdr@axiomatics.org> | 2011-03-12 22:56:37 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-03-12 22:56:37 +0000 |
commit | 6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (patch) | |
tree | 28ff587bbc4d759dd0e3f96b156700ff01ba8c53 /src/algebra/multfact.spad.pamphlet | |
parent | a2e3e641bdbcb6e77bbb572aea25a748a967abca (diff) | |
download | open-axiom-6c75a87d8ee00d48a0f5703aa9c86591078a50d3.tar.gz |
* src/algebra/: Systematically use not one? when comparing for
equality with 1.
Diffstat (limited to 'src/algebra/multfact.spad.pamphlet')
-rw-r--r-- | src/algebra/multfact.spad.pamphlet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/algebra/multfact.spad.pamphlet b/src/algebra/multfact.spad.pamphlet index b6009e97..de704ea2 100644 --- a/src/algebra/multfact.spad.pamphlet +++ b/src/algebra/multfact.spad.pamphlet @@ -325,7 +325,7 @@ InnerMultFact(OV,E,R,P) : C == T lpol:= dist.polfac dd := dist.correct unifact:=dist.corrfact - if dd~=1 then + if not one? dd then -- if polcase then lpol := [unitCanonical lp for lp in lpol] -- dd:=unitCanonical(dd) unifact := [dd * unif for unif in unifact] @@ -334,7 +334,7 @@ InnerMultFact(OV,E,R,P) : C == T (ffin:=lifting(umd,lvar,unifact,lval,lpol,ldeg,pmod)) case "failed" => intfact(um,lvar,ldeg,tleadpol,ltry,ufactor) factfin: L USP:=ffin :: L USP - if dd~=1 then + if not one? dd then factfin:=[primitivePart ff for ff in factfin] factfin @@ -425,7 +425,7 @@ InnerMultFact(OV,E,R,P) : C == T x := lvar.first lvar := lvar.rest pc:= gcd coefficients um - if pc~=1 then + if not one? pc then um:=(um exquo pc)::USP ffactor:=multivariate(um,x) for lcterm in mFactor(pc,ufactor).factors repeat |