From c93e84048964194e5674e859d6bd8827010f09f6 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sat, 12 Mar 2011 19:17:32 +0000 Subject: * src/algebra/: Systematically use negative? when comparing for greater than 0. --- src/algebra/taylor.spad.pamphlet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/algebra/taylor.spad.pamphlet') diff --git a/src/algebra/taylor.spad.pamphlet b/src/algebra/taylor.spad.pamphlet index e3e01da9..5c113a19 100644 --- a/src/algebra/taylor.spad.pamphlet +++ b/src/algebra/taylor.spad.pamphlet @@ -317,7 +317,7 @@ UnivariateTaylorSeries(Coef,var,cen): Exports == Implementation where coefficient(x,n) == -- Cannot use elt! Should return 0 if stream doesn't have it. u := stream x - while not empty? u and n > 0 repeat + while not empty? u and positive? n repeat u := rst u n := (n - 1) :: NNI empty? u or n ~= 0 => 0 -- cgit v1.2.3