Author: luc
Date: Sun Jul 13 02:55:01 2008
New Revision: 676291

URL: http://svn.apache.org/viewvc?rev=676291&view=rev
Log:
fixed a problem introduced by recent changes,
thanks to Phil to spot it

Modified:
    
commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java

Modified: 
commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java?rev=676291&r1=676290&r2=676291&view=diff
==============================================================================
--- 
commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java
 (original)
+++ 
commons/proper/math/branches/MATH_2_0/src/java/org/apache/commons/math/ode/sampling/AbstractStepInterpolator.java
 Sun Jul 13 02:55:01 2008
@@ -240,7 +240,8 @@
       throws DerivativeException {
       interpolatedTime = time;
       final double oneMinusThetaH = currentTime - interpolatedTime;
-      computeInterpolatedState((h - oneMinusThetaH) / h, oneMinusThetaH);
+      final double theta = (h == 0) ? 0 : (h - oneMinusThetaH) / h;
+      computeInterpolatedState(theta, oneMinusThetaH);
   }
 
   /** [EMAIL PROTECTED] */


Reply via email to