From 52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 17:04:43 +0000 Subject: * src/algebra/: Systematically use negative? when comparing for less than 0. --- src/algebra/limitps.spad.pamphlet | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/algebra/limitps.spad.pamphlet') diff --git a/src/algebra/limitps.spad.pamphlet b/src/algebra/limitps.spad.pamphlet index 5837ffa9..ac82fee8 100644 --- a/src/algebra/limitps.spad.pamphlet +++ b/src/algebra/limitps.spad.pamphlet @@ -711,13 +711,13 @@ ElementaryFunctionSign(R,F): Exports == Implementation where "failed" "failed" is?(op,"log" :: SY) => - s::Z < 0 => "failed" + negative?(s::Z) => "failed" sign(first arg - 1) is?(op,"tanh" :: SY) or is?(op,"sinh" :: SY) or is?(op,"csch" :: SY) or is?(op,"coth" :: SY) => s is?(op,"nthRoot" :: SY) => even?(retract(second arg)@Z) => - s::Z < 0 => "failed" + negative?(s::Z) => "failed" s s "failed" -- cgit v1.2.3