aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/fr.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/fr.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/fr.spad.pamphlet')
-rw-r--r--src/algebra/fr.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/fr.spad.pamphlet b/src/algebra/fr.spad.pamphlet
index a77e5370..babaa801 100644
--- a/src/algebra/fr.spad.pamphlet
+++ b/src/algebra/fr.spad.pamphlet
@@ -187,7 +187,7 @@ Factored(R: IntegralDomain): Exports == Implementation where
-- l := concat(convert(rec.fctr)@InputForm, l)
-- l := concat(convert(rec.fctr)@InputForm ** rec.xpnt, l)
empty? l => convert(unit x)@InputForm
- if unit x ~= 1 then l := concat(convert(unit x)@InputForm,l)
+ if not one? unit x then l := concat(convert(unit x)@InputForm,l)
empty? rest l => first l
binary(convert(_*::Symbol)@InputForm, l)@InputForm