public class Euler extends AbstractODESolver
Modifier and Type | Field and Description |
---|---|
protected double[] |
rate |
numEqn, ode, stepSize
Constructor and Description |
---|
Euler(ODE ode)
Constructs the Euler ODESolver for a system of ordinary differential equations.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(double stepSize)
Initializes the ODE solver and allocates the rate array.
|
double |
step()
Steps (advances) the differential equations by the stepSize.
|
getStepSize, setStepSize
public Euler(ODE ode)
ode
- the system of differential equations.public void initialize(double stepSize)
initialize
in interface ODESolver
initialize
in class AbstractODESolver
stepSize
- public double step()
step
in interface ODESolver
step
in class AbstractODESolver