This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push:
new 3f043ba7e Improved with better formatting. (#225)
3f043ba7e is described below
commit 3f043ba7e10b09b4bdaeb9e7900626ed74b001e5
Author: Arturo Bernal <[email protected]>
AuthorDate: Sat Oct 22 23:58:20 2022 +0200
Improved with better formatting. (#225)
---
.../math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
index 527682894..b633958d6 100644
---
a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
+++
b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/ode/nonstiff/HighamHall54StepInterpolator.java
@@ -99,11 +99,11 @@ class HighamHall54StepInterpolator
}
} else {
final double theta2 = theta * theta;
- final double b0 = h * (-1.0/12.0 + theta * (1.0 + theta * (-15.0/4.0 +
theta * (16.0/3.0 + theta * -5.0/2.0))));
- final double b2 = h * (-27.0/32.0 + theta2 * (459.0/32.0 + theta *
(-243.0/8.0 + theta * 135.0/8.0)));
- final double b3 = h * (4.0/3.0 + theta2 * (-22.0 + theta * (152.0/3.0
+ theta * -30.0)));
+ final double b0 = h * (-1.0/12.0 + theta * (1.0 + theta *
(-15.0/4.0 + theta * (16.0/3.0 + theta * -5.0/2.0))));
+ final double b2 = h * (-27.0/32.0 + theta2 * (459.0/32.0 + theta *
(-243.0/8.0 + theta * 135.0/8.0)));
+ final double b3 = h * (4.0/3.0 + theta2 * (-22.0 + theta *
(152.0/3.0 + theta * -30.0)));
final double b4 = h * (-125.0/96.0 + theta2 * (375.0/32.0 + theta *
(-625.0/24.0 + theta * 125.0/8.0)));
- final double b5 = h * (-5.0/48.0 + theta2 * (-5.0/16.0 + theta *
5.0/12.0));
+ final double b5 = h * (-5.0/48.0 + theta2 * (-5.0/16.0 + theta *
5.0/12.0));
for (int i = 0; i < interpolatedState.length; ++i) {
final double yDot0 = yDotK[0][i];
final double yDot2 = yDotK[2][i];