|
||||||||||
| 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.TestProblem4
public class TestProblem4
This class is used in the junit tests for the ODE integrators.
This specific problem is the following differential equation :
x'' = -x
And when x decreases down to 0, the state should be changed as follows :
x' -> -x'The theoretical solution of this problem is x = |sin(t+a)|
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.math.ode.TestProblemAbstract |
|---|
calls, errorScale, n, t0, t1, y0 |
| Constructor Summary | |
|---|---|
TestProblem4()
Simple constructor. |
|
TestProblem4(TestProblem4 problem)
Copy constructor. |
|
| Method Summary | |
|---|---|
double[] |
computeTheoreticalState(double t)
Compute the theoretical state at the specified time. |
TestProblem4 |
copy()
Copy operation. |
void |
doComputeDerivatives(double t,
double[] y,
double[] yDot)
|
org.apache.commons.math.ode.events.EventHandler[] |
getEventsHandlers()
Get the events handlers. |
| Methods inherited from class org.apache.commons.math.ode.TestProblemAbstract |
|---|
computeDerivatives, getCalls, getDimension, getErrorScale, 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 TestProblem4()
public TestProblem4(TestProblem4 problem)
problem - problem to copy| Method Detail |
|---|
public TestProblem4 copy()
copy in class TestProblemAbstractpublic org.apache.commons.math.ode.events.EventHandler[] getEventsHandlers()
TestProblemAbstract
getEventsHandlers in class TestProblemAbstract
public void doComputeDerivatives(double t,
double[] y,
double[] yDot)
doComputeDerivatives in class TestProblemAbstractpublic double[] computeTheoreticalState(double t)
TestProblemAbstract
computeTheoreticalState in class TestProblemAbstractt - time at which the state is required
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||