public class ODE1stOrder extends Object
For a DerivativeFunction, evaluate(t, y) must return the
vector of derivatives in the same component order as the initial state.
Its dimension must match y0.size(). Components of y use
one-based indexing. Return a fresh derivative vector rather than modifying
the supplied state. The initial state is copied by this constructor.
| Constructor and Description |
|---|
ODE1stOrder(DerivativeFunction dy,
Vector y0,
double x0,
double x1)
Constructs a first order ODE with the given vector-valued function and its initial values.
|
ODE1stOrder(ODE ode)
Reduces a high order ODE to a system of first order ODEs.
|
ODE1stOrder(RealScalarFunction[] Y,
double[] y0,
double x0,
double x1)
Constructs a system of first order ODEs \(\{Y_{i}\}\) with their initial values
\(\{y_{i0}\}\).
\[
y_1' = Y_1(x, y_1, y_2, y_3, ...), y_1(0) = y_{10}\\
y_2' = Y_2(x, y_1, y_2, y_3, ...), y_2(0) = y_{20}\\
y_3' = Y_3(x, y_1, y_2, y_3, ...), y_3(0) = y_{30}\\
|
ODE1stOrder(RealVectorFunction F,
Vector y0,
double x0,
double x1)
Constructs a first order ODE with the given vector-valued function and its initial values.
|
| Modifier and Type | Method and Description |
|---|---|
static DerivativeFunction |
convertToDerivativeFunction(RealVectorFunction F,
int dimension)
Converts the given vector function to a first order derivative function.
|
int |
dimension()
Gets the dimension of y.
|
DerivativeFunction |
dy()
Gets the first order derivative function.
|
double |
x0()
Gets the start point of the integrating interval \([x_{0}, x_{1}]\).
|
double |
x1()
Gets the end point of the integrating interval \([x_{0}, x_{1}]\).
|
Vector |
y0()
Gets the initial value of y, that is, \(y_{0}\).
|
public ODE1stOrder(DerivativeFunction dy, Vector y0, double x0, double x1)
dy - the first order derivative function y' = F(x, y)y0 - \(y_{0}\)x0 - the start point of the integrating interval \([x_{0}, x_{1}]\)x1 - the end point of the integrating interval \([x_{0}, x_{1}]\)public ODE1stOrder(RealScalarFunction[] Y, double[] y0, double x0, double x1)
Y - the differentials, \(\{Y_{i}\}\)y0 - the initial values, \(\{y_{i}(0)\}\)x0 - the start point of the integrating interval \([x_{0}, x_{1}]\)x1 - the end point of the integrating interval \([x_{0}, x_{1}]\)public ODE1stOrder(RealVectorFunction F, Vector y0, double x0, double x1)
F - F(x, y) = y'y0 - \(y_{0}\)x0 - the start point of the integrating interval \([x_{0}, x_{1}]\)x1 - the end point of the integrating interval \([x_{0}, x_{1}]\)public ODE1stOrder(ODE ode)
ode - the high order ODEpublic static DerivativeFunction convertToDerivativeFunction(RealVectorFunction F, int dimension)
F - the vector-valued function \(F(x, y_{1}, \ldots , y_{n})\)dimension - the dimension of the derivative functionpublic DerivativeFunction dy()
public int dimension()
public Vector y0()
public double x0()
public double x1()
Copyright © 2010-2026 NM Group. All Rights Reserved.