aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/indexedp.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/indexedp.spad.pamphlet')
-rw-r--r--src/algebra/indexedp.spad.pamphlet10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/algebra/indexedp.spad.pamphlet b/src/algebra/indexedp.spad.pamphlet
index 41f9bc89..34d62e96 100644
--- a/src/algebra/indexedp.spad.pamphlet
+++ b/src/algebra/indexedp.spad.pamphlet
@@ -65,8 +65,8 @@ IndexedDirectProductObject(A:SetCategory,S:OrderedSet): IndexedDirectProductCate
--define
x = y ==
while not null x and _^ null y repeat
- x.first.k ^= y.first.k => return false
- x.first.c ^= y.first.c => return false
+ x.first.k ~= y.first.k => return false
+ x.first.c ~= y.first.c => return false
x:=x.rest
y:=y.rest
null x and null y
@@ -159,10 +159,10 @@ IndexedDirectProductAbelianMonoid(A:AbelianMonoid,S:OrderedSet):
n * x ==
n = 0 => 0
n = 1 => x
- [[u.k,a] for u in x | (a:=n*u.c) ^= 0$A]
+ [[u.k,a] for u in x | (a:=n*u.c) ~= 0$A]
monomial(r,s) == (r = 0 => 0; [[s,r]])
- map(f,x) == [[tm.k,a] for tm in x | (a:=f(tm.c)) ^= 0$A]
+ map(f,x) == [[tm.k,a] for tm in x | (a:=f(tm.c)) ~= 0$A]
reductum x == (null x => 0; rest x)
leadingCoefficient x == (null x => 0; x.first.c)
@@ -253,7 +253,7 @@ IndexedDirectProductAbelianGroup(A:AbelianGroup,S:OrderedSet):
n * x ==
n = 0 => 0
n = 1 => x
- [[u.k,a] for u in x | (a:=n*u.c) ^= 0$A]
+ [[u.k,a] for u in x | (a:=n*u.c) ~= 0$A]
qsetrest!: (Rep, Rep) -> Rep
qsetrest!(l: Rep, e: Rep): Rep == RPLACD(l, e)$Lisp