aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/taylor.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/taylor.spad.pamphlet')
-rw-r--r--src/algebra/taylor.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
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