opale.ode
Interface Equation
- All Known Implementing Classes:
- SEquation
- public interface Equation
This interface muste be implemented to define an equation for a ODE problem : (xi)'=f(t,x1,...,xn) for i=1 to n. Two methods are abstracts :
- the method
dim()
that returns the dimension of teh equation, i.e. the number of unknown 'n').
- the method
double[] deriv(double t, double[] x)
that defines the function f of th problem.
- Since:
- Opale-ODE 0.1
Method Summary |
DVect |
derivs(double t,
DVect x)
Defines the function of the equation. |
int |
dim()
Get the space dimension of the unknown. |
dim
public int dim()
- Get the space dimension of the unknown.
- Returns:
- int, the dimension.
derivs
public DVect derivs(double t,
DVect x)
- Defines the function of the equation.
- Parameters:
double
- t, time parameter (=derivation parameter).DVect
- x, unknown parameters.- Returns:
- DVect, the value of the function at the point (t,x).