aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/numode.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/numode.spad.pamphlet')
-rw-r--r--src/algebra/numode.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/numode.spad.pamphlet b/src/algebra/numode.spad.pamphlet
index 84415e34..4a88a636 100644
--- a/src/algebra/numode.spad.pamphlet
+++ b/src/algebra/numode.spad.pamphlet
@@ -203,7 +203,7 @@ NumericalOrdinaryDifferentialEquations(): Exports == Implementation where
--compute the derivative
derivs(dydx,y,x)
--if overshoot, the set h accordingly
- if (x + step.tryValue - x2) > 0.0 then
+ if positive?(x + step.tryValue - x2) then
step.tryValue := x2 - x
--find the correct scaling
for i in 1..m repeat