|
||||||||||
| 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.TestProblem3
public class TestProblem3
This class is used in the junit tests for the ODE integrators.
This specific problem is the following differential equation :
y1'' = -y1/r^3 y1 (0) = 1-e y1' (0) = 0
y2'' = -y2/r^3 y2 (0) = 0 y2' (0) =sqrt((1+e)/(1-e))
r = sqrt (y1^2 + y2^2), e = 0.9
This is a two-body problem in the plane which can be solved by
Kepler's equation
y1 (t) = ...
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.math.ode.TestProblemAbstract |
|---|
calls, errorScale, n, t0, t1, y0 |
| Constructor Summary | |
|---|---|
TestProblem3()
Simple constructor. |
|
TestProblem3(double e)
Simple constructor. |
|
TestProblem3(TestProblem3 problem)
Copy constructor. |
|
| Method Summary | |
|---|---|
double[] |
computeTheoreticalState(double t)
Compute the theoretical state at the specified time. |
TestProblem3 |
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 TestProblem3(double e)
e - eccentricitypublic TestProblem3()
public TestProblem3(TestProblem3 problem)
problem - problem to copy| Method Detail |
|---|
public TestProblem3 copy()
copy 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 | |||||||||