From 6c75a87d8ee00d48a0f5703aa9c86591078a50d3 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 22:56:37 +0000 Subject: * src/algebra/: Systematically use not one? when comparing for equality with 1. --- src/algebra/modmon.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/modmon.spad.pamphlet') 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 -- cgit v1.2.3