aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/twofact.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 22:56:37 +0000
commit6c75a87d8ee00d48a0f5703aa9c86591078a50d3 (patch)
tree28ff587bbc4d759dd0e3f96b156700ff01ba8c53 /src/algebra/twofact.spad.pamphlet
parenta2e3e641bdbcb6e77bbb572aea25a748a967abca (diff)
downloadopen-axiom-6c75a87d8ee00d48a0f5703aa9c86591078a50d3.tar.gz
* src/algebra/: Systematically use not one? when comparing for
equality with 1.
Diffstat (limited to 'src/algebra/twofact.spad.pamphlet')
-rw-r--r--src/algebra/twofact.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/twofact.spad.pamphlet b/src/algebra/twofact.spad.pamphlet
index 2161c9a2..fb560b20 100644
--- a/src/algebra/twofact.spad.pamphlet
+++ b/src/algebra/twofact.spad.pamphlet
@@ -159,7 +159,7 @@ TwoFactorize(F) : C == T
pfaclist)
unitPart := unit(nfacs)**uexp * unitPart
pfaclist := cons(u,pfaclist)
- cont ~= 1 =>
+ not one? cont =>
sqp := squareFree cont
contlist:=[[w.flg,(w.fctr)::P,w.xpnt] for w in factorList sqp]
pfaclist:= append(contlist, pfaclist)
@@ -274,7 +274,7 @@ TwoFactorize(F) : C == T
while not empty? lfacth repeat
ff := first lfacth
lfacth := rest lfacth
- if (c:=leadingCoefficient leadingCoefficient ff) ~=1 then
+ if not one?(c:=leadingCoefficient leadingCoefficient ff) then
ff:=((inv c)::SUEx)* ff
not ((ffu:= retractIfCan(ff)$Normp) case "failed") =>
lfactk := cons(ffu::P, lfactk)