|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.numerics.Euler
public class Euler
Euler implements an Euler method ODE solver. The Euler method is unstable for many systems. It is included as an example of how to use the ODE and ODESolver interface.
Constructor Summary | |
---|---|
Euler(ODE _ode)
Constructs the Euler ODESolver for a system of ordinary differential equations. |
Method Summary | |
---|---|
double |
getStepSize()
Gets the step size The stepsize is constant in this algorithm |
void |
initialize(double _stepSize)
Initializes the ODE solver The rate array is allocated. |
void |
setStepSize(double _stepSize)
Sets the step size The step size remains fixed in this algorithm |
double |
step()
Steps (advance) the differential equations by the stepSize The ODESolver invokes the ODE's getRate method to obtain the initial state of the system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Euler(ODE _ode)
_ode
- the system of differential equations.Method Detail |
---|
public double step()
step
in interface ODESolver
public void setStepSize(double _stepSize)
setStepSize
in interface ODESolver
_stepSize
- public void initialize(double _stepSize)
initialize
in interface ODESolver
_stepSize
- public double getStepSize()
getStepSize
in interface ODESolver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |