aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/riccati.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/riccati.spad.pamphlet')
-rw-r--r--src/algebra/riccati.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/riccati.spad.pamphlet b/src/algebra/riccati.spad.pamphlet
index e581b129..a331e45e 100644
--- a/src/algebra/riccati.spad.pamphlet
+++ b/src/algebra/riccati.spad.pamphlet
@@ -228,7 +228,7 @@ PrimitiveRatRicDE(F, UP, L, LQ): Exports == Implementation where
for i in 0..n | (li := coefficient(l, i)) ~= 0 repeat
for j in i+1..n | (lj := coefficient(l, j)) ~= 0 repeat
u := (nu li - nu lj) exquo (i-j)
- if (u case Z) and ((b := u::Z) > 0) then
+ if (u case Z) and positive?(b := u::Z) then
lb := concat([[i, j], b::N], lb)
lb