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/manip.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/manip.spad.pamphlet') diff --git a/src/algebra/manip.spad.pamphlet b/src/algebra/manip.spad.pamphlet index dc0adfef..fe59129a 100644 --- a/src/algebra/manip.spad.pamphlet +++ b/src/algebra/manip.spad.pamphlet @@ -108,7 +108,7 @@ PolynomialRoots(E, V, R, P, F):Exports == Implementation where czroot(x, n) == rec := zroot(x, n) - rec.exponent = 2 and rec.radicand < 0 => + rec.exponent = 2 and negative? rec.radicand => [rec.exponent, rec.coef * imaginary()::P::F, (-rec.radicand)::F] [rec.exponent, rec.coef::F, rec.radicand::F] -- cgit v1.2.3