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/xlpoly.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/xlpoly.spad.pamphlet')
-rw-r--r-- | src/algebra/xlpoly.spad.pamphlet | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/xlpoly.spad.pamphlet b/src/algebra/xlpoly.spad.pamphlet index 54526022..f607199d 100644 --- a/src/algebra/xlpoly.spad.pamphlet +++ b/src/algebra/xlpoly.spad.pamphlet @@ -254,7 +254,7 @@ LyndonWord(VarSet:OrderedSet):Public == Private where lyndon? w == w = 1$OFMON => false f: OFMON := rest w - while f ~= 1$OFMON repeat + while not one? f repeat not lexico(w,f) => return false f := rest f true @@ -807,7 +807,7 @@ PoincareBirkhoffWittLyndonBasis(VarSet: OrderedSet): Public == Private where null x.rest retract x == - #x ~= 1 => error "cannot convert to Lyndon word" + not one?(#x) => error "cannot convert to Lyndon word" x.first retractIfCan x == |