|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.ode.TestProblemAbstract
org.apache.commons.math.ode.TestProblem6
public class TestProblem6
This class is used in the junit tests for the ODE integrators.
This specific problem is the following differential equation :
y' = 3x^5 - ywhen the initial condition is y(0) = -360, the solution of this equation degenerates to a simple quintic polynomial function :
y (t) = 3x^5 - 15x^4 + 60x^3 - 180x^2 + 360x - 360
Field Summary |
---|
Fields inherited from class org.apache.commons.math.ode.TestProblemAbstract |
---|
calls, errorScale, n, t0, t1, y0 |
Constructor Summary | |
---|---|
TestProblem6()
Simple constructor. |
|
TestProblem6(TestProblem6 problem)
Copy constructor. |
Method Summary | |
---|---|
double[] |
computeTheoreticalState(double t)
Compute the theoretical state at the specified time. |
TestProblem6 |
copy()
Copy operation. |
void |
doComputeDerivatives(double t,
double[] y,
double[] yDot)
|
Methods inherited from class org.apache.commons.math.ode.TestProblemAbstract |
---|
computeDerivatives, getCalls, getDimension, getErrorScale, getEventsHandlers, getFinalTime, getInitialState, getInitialTime, setErrorScale, setFinalConditions, setInitialConditions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestProblem6()
public TestProblem6(TestProblem6 problem)
problem
- problem to copyMethod Detail |
---|
public TestProblem6 copy()
copy
in class TestProblemAbstract
public void doComputeDerivatives(double t, double[] y, double[] yDot)
doComputeDerivatives
in class TestProblemAbstract
public double[] computeTheoreticalState(double t)
TestProblemAbstract
computeTheoreticalState
in class TestProblemAbstract
t
- time at which the state is required
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |