aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/xpoly.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/xpoly.spad.pamphlet')
-rw-r--r--src/algebra/xpoly.spad.pamphlet4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/algebra/xpoly.spad.pamphlet b/src/algebra/xpoly.spad.pamphlet
index b946d8bd..249a5e0e 100644
--- a/src/algebra/xpoly.spad.pamphlet
+++ b/src/algebra/xpoly.spad.pamphlet
@@ -267,7 +267,7 @@ FreeModule1(R:Ring,S:OrderedSet): FMcat == FMdef where
monomials x == [ monom (t.k, t.c) for t in x]
retractIfCan x ==
- numberOfMonomials(x) ~= 1 => "failed"
+ not one? numberOfMonomials(x) => "failed"
x.first.c = 1 => x.first.k
"failed"
@@ -574,7 +574,7 @@ XPolynomialRing(R:Ring,E:OrderedMonoid): T == C where
constant? p == (p = 0) or (maxdeg(p) = 1$E)
constant p == coef(p,1$E)
- quasiRegular? p == (p=0) or (last p).k ~= 1$E
+ quasiRegular? p == (p=0) or not one?((last p).k)
quasiRegular p ==
quasiRegular?(p) => p
[t for t in p | not(t.k = 1$E)]