|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.numerics.RK45
public class RK45
Title: RK45 Description: RK4/5 ODE solver with variable step size.
Constructor Summary | |
---|---|
RK45(ODE _ode)
Constructs the RK45 ODESolver for a system of ordinary differential equations. |
Method Summary | |
---|---|
double |
getStepSize()
Gets the step size. |
double |
getTolerance()
Method getTolerance |
void |
initialize(double _stepSize)
Initializes the ODE solver. |
void |
setStepSize(double _stepSize)
Sets the step size. |
void |
setTolerance(double _tol)
Method setTolerance |
double |
step()
Steps (advances) the differential equations by the stepSize. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RK45(ODE _ode)
_ode
- the system of differential equations.Method Detail |
---|
public void initialize(double _stepSize)
initialize
in interface ODESolver
_stepSize
- public double step()
step
in interface ODESolver
public void setStepSize(double _stepSize)
setStepSize
in interface ODESolver
_stepSize
- public double getStepSize()
getStepSize
in interface ODESolver
public void setTolerance(double _tol)
setTolerance
in interface ODEAdaptiveSolver
_tol
- public double getTolerance()
getTolerance
in interface ODEAdaptiveSolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |