public class ODE1stOrder extends Object
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 {Yi} with their initial values
{yi0}.
|
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 [x0, x1].
|
double |
x1()
Gets the end point of the integrating interval [x0, x1].
|
Vector |
y0()
Gets the initial value of y, that is, y0.
|
public ODE1stOrder(DerivativeFunction dy, Vector y0, double x0, double x1)
dy
- the first order derivative function y' = F(x, y)y0
- y0x0
- the start point of the integrating interval [x0, x1]x1
- the end point of the integrating interval [x0, x1]public ODE1stOrder(RealScalarFunction[] Y, double[] y0, double x0, double x1)
Y
- the differentials, {Yi}y0
- the initial values, {yi(0)}x0
- the start point of the integrating interval [x0, x1]x1
- the end point of the integrating interval [x0, x1]public ODE1stOrder(RealVectorFunction F, Vector y0, double x0, double x1)
F
- F(x, y) = y'y0
- y0x0
- the start point of the integrating interval [x0, x1]x1
- the end point of the integrating interval [x0, x1]public ODE1stOrder(ODE ode)
ode
- the high order ODEpublic static DerivativeFunction convertToDerivativeFunction(RealVectorFunction F, int dimension)
F
- the vector-valued function F(x, y1, ..., yn)dimension
- the dimension of the derivative functionpublic DerivativeFunction dy()
public int dimension()
public Vector y0()
public double x0()
public double x1()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.