Fixed a parenthesis error in Higham-Hall 5(4) step interpolator. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/d5c183b2 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/d5c183b2 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/d5c183b2
Branch: refs/heads/MATH_3_X Commit: d5c183b21c26b160846d7e7ea216a2e54fd5ea05 Parents: d9431ea Author: Luc Maisonobe <l...@apache.org> Authored: Tue Dec 8 17:30:23 2015 +0100 Committer: Luc Maisonobe <l...@apache.org> Committed: Tue Dec 8 17:30:23 2015 +0100 ---------------------------------------------------------------------- .../math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/d5c183b2/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java index caf3bc8..04fc8e2 100644 --- a/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java +++ b/src/main/java/org/apache/commons/math3/ode/nonstiff/HighamHall54FieldStepInterpolator.java @@ -84,7 +84,7 @@ class HighamHall54FieldStepInterpolator<T extends RealFieldElement<T>> final T b2 = hTheta.multiply(theta.multiply(theta.multiply(theta.multiply(135.0 / 8.0).add(-243.0 / 8.0)).add(459.0 / 32.0))); final T b3 = hTheta.multiply(theta.multiply(theta.multiply(theta.multiply(-30.0 ).add( 152.0 / 3.0)).add(-22.0 ))); final T b4 = hTheta.multiply(theta.multiply(theta.multiply(theta.multiply(125.0 / 8.0).add(-625.0 / 24.0)).add(375.0 / 32.0))); - final T b5 = hTheta.multiply(theta.multiply(theta.multiply( 5.0 / 12.0)).add( -5.0 / 16.0)); + final T b5 = hTheta.multiply(theta.multiply(theta.multiply( 5.0 / 12.0 ).add( -5.0 / 16.0))); interpolatedState = previousStateLinearCombination(b0, b1, b2, b3, b4, b5); interpolatedDerivatives = derivativeLinearCombination(bDot0, bDot1, bDot2, bDot3, bDot4, bDot5); } else {