aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/derham.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/derham.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/derham.spad.pamphlet')
-rw-r--r--src/algebra/derham.spad.pamphlet3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/algebra/derham.spad.pamphlet b/src/algebra/derham.spad.pamphlet
index fe2a2e36..6e526e21 100644
--- a/src/algebra/derham.spad.pamphlet
+++ b/src/algebra/derham.spad.pamphlet
@@ -87,7 +87,8 @@ ExtAlgBasis(): Export == Implement where
coerce(li:(L I)) ==
for x in li repeat
- if x ~= 1 and x ~= 0 then error "coerce: values can only be 0 and 1"
+ if not one? x and not zero? x then
+ error "coerce: values can only be 0 and 1"
li
degree x == (_+/x)::NNI