|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensourcephysics.numerics.AbstractODESolver
org.opensourcephysics.numerics.Ralston2
Ralston2 implements Ralston's algorithm for solving ODEs by evaluating the rate at the initial state, estimating the rate for the final state, and using a weighted average of these two rates to advance the state.
| Field Summary |
| Fields inherited from class org.opensourcephysics.numerics.AbstractODESolver |
numEqn, ode, stepSize |
| Constructor Summary | |
Ralston2(ODE ode)
|
|
| Method Summary | |
void |
initialize(double stepSize)
Initializes the ODE solver and allocates the rate and state arrays. |
double |
step()
Steps (advances) the differential equations by the stepSize. |
| Methods inherited from class org.opensourcephysics.numerics.AbstractODESolver |
createODESolver, getStepSize, setStepSize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Ralston2(ODE ode)
| Method Detail |
public void initialize(double stepSize)
initialize in interface ODESolverinitialize in class AbstractODESolverstepSize - public double step()
step in interface ODESolverstep in class AbstractODESolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||