aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/modmon.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/modmon.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/modmon.spad.pamphlet')
-rw-r--r--src/algebra/modmon.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/modmon.spad.pamphlet b/src/algebra/modmon.spad.pamphlet
index 84c10d58..cb60793e 100644
--- a/src/algebra/modmon.spad.pamphlet
+++ b/src/algebra/modmon.spad.pamphlet
@@ -73,7 +73,7 @@ ModMonic(R,Rep): C == T
setPoly (mon : Rep) ==
mon =$Rep m => mon
oldm := m
- leadingCoefficient mon ~= 1 => error "polynomial must be monic"
+ not one? leadingCoefficient mon => error "polynomial must be monic"
-- following copy code needed since FFPOLY can modify mon
copymon:Rep:= 0
while not zero? mon repeat