improved test coverage
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@588677 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f1961ea622
commit
2e8332522e
|
@ -57,12 +57,12 @@ public class DormandPrince54IntegratorTest
|
|||
TestProblem1 pb = new TestProblem1();
|
||||
double minStep = 0.1 * (pb.getFinalTime() - pb.getInitialTime());
|
||||
double maxStep = pb.getFinalTime() - pb.getInitialTime();
|
||||
double scalAbsoluteTolerance = 1.0e-15;
|
||||
double scalRelativeTolerance = 1.0e-15;
|
||||
double[] vecAbsoluteTolerance = { 1.0e-15, 1.0e-16 };
|
||||
double[] vecRelativeTolerance = { 1.0e-15, 1.0e-16 };
|
||||
|
||||
FirstOrderIntegrator integ = new DormandPrince54Integrator(minStep, maxStep,
|
||||
scalAbsoluteTolerance,
|
||||
scalRelativeTolerance);
|
||||
vecAbsoluteTolerance,
|
||||
vecRelativeTolerance);
|
||||
TestProblemHandler handler = new TestProblemHandler(pb);
|
||||
integ.setStepHandler(handler);
|
||||
integ.integrate(pb,
|
||||
|
|
|
@ -72,12 +72,12 @@ public class DormandPrince853IntegratorTest
|
|||
TestProblem1 pb = new TestProblem1();
|
||||
double minStep = 0.1 * (pb.getFinalTime() - pb.getInitialTime());
|
||||
double maxStep = pb.getFinalTime() - pb.getInitialTime();
|
||||
double scalAbsoluteTolerance = 1.0e-15;
|
||||
double scalRelativeTolerance = 1.0e-15;
|
||||
double[] vecAbsoluteTolerance = { 1.0e-15, 1.0e-16 };
|
||||
double[] vecRelativeTolerance = { 1.0e-15, 1.0e-16 };
|
||||
|
||||
FirstOrderIntegrator integ = new DormandPrince853Integrator(minStep, maxStep,
|
||||
scalAbsoluteTolerance,
|
||||
scalRelativeTolerance);
|
||||
vecAbsoluteTolerance,
|
||||
vecRelativeTolerance);
|
||||
TestProblemHandler handler = new TestProblemHandler(pb);
|
||||
integ.setStepHandler(handler);
|
||||
integ.integrate(pb,
|
||||
|
|
|
@ -71,12 +71,12 @@ public class GraggBulirschStoerIntegratorTest
|
|||
TestProblem1 pb = new TestProblem1();
|
||||
double minStep = 0.1 * (pb.getFinalTime() - pb.getInitialTime());
|
||||
double maxStep = pb.getFinalTime() - pb.getInitialTime();
|
||||
double absTolerance = 1.0e-20;
|
||||
double relTolerance = 1.0e-20;
|
||||
double[] vecAbsoluteTolerance = { 1.0e-20, 1.0e-21 };
|
||||
double[] vecRelativeTolerance = { 1.0e-20, 1.0e-21 };
|
||||
|
||||
FirstOrderIntegrator integ =
|
||||
new GraggBulirschStoerIntegrator(minStep, maxStep,
|
||||
absTolerance, relTolerance);
|
||||
vecAbsoluteTolerance, vecRelativeTolerance);
|
||||
TestProblemHandler handler = new TestProblemHandler(pb);
|
||||
integ.setStepHandler(handler);
|
||||
integ.integrate(pb,
|
||||
|
|
|
@ -79,12 +79,12 @@ public class HighamHall54IntegratorTest
|
|||
TestProblem1 pb = new TestProblem1();
|
||||
double minStep = 0.1 * (pb.getFinalTime() - pb.getInitialTime());
|
||||
double maxStep = pb.getFinalTime() - pb.getInitialTime();
|
||||
double scalAbsoluteTolerance = 1.0e-15;
|
||||
double scalRelativeTolerance = 1.0e-15;
|
||||
double[] vecAbsoluteTolerance = { 1.0e-15, 1.0e-16 };
|
||||
double[] vecRelativeTolerance = { 1.0e-15, 1.0e-16 };
|
||||
|
||||
FirstOrderIntegrator integ = new HighamHall54Integrator(minStep, maxStep,
|
||||
scalAbsoluteTolerance,
|
||||
scalRelativeTolerance);
|
||||
vecAbsoluteTolerance,
|
||||
vecRelativeTolerance);
|
||||
TestProblemHandler handler = new TestProblemHandler(pb);
|
||||
integ.setStepHandler(handler);
|
||||
integ.integrate(pb,
|
||||
|
|
Loading…
Reference in New Issue