|
MVT API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--math.numerics.ODE2
Constructor Summary | |
ODE2()
|
|
ODE2(Function f1,
Function f2,
Variable indVar,
Variable depVar1,
Variable depVar2,
double indIC,
double indMax,
double depIC1,
double depIC2)
|
Method Summary | |
Point3D[] |
adaptRK45()
|
Point3D[] |
euler()
|
double |
getIndIC()
gets the initial condition for the independent variable |
double |
getIndMax()
gets the max. |
Point3D[] |
huenmethod()
|
Point3D[] |
rungeKutta4()
|
void |
setDepIC1(double ic)
sets the initial condition for the first dependent variable |
void |
setDepIC2(double ic)
sets the initial condition for the second dependent variable |
void |
setDepVar1(Variable var)
sets the first dependent variable for this class |
void |
setDepVar2(Variable var)
sets the second dependent variable for this class |
void |
setEPS(double s)
|
void |
setFunction1(Function f)
sets the first Function for this class |
void |
setFunction2(Function f)
sets the second Function for this class |
void |
setIndIC(double ic)
sets the initial condition for the independent variable |
void |
setIndMax(double max)
sets the max. |
void |
setIndVar(Variable var)
sets the independent variable for this class |
void |
setNumSteps(int num)
Sets the number of steps used for the solver |
void |
setStepSize(double s)
sets the step size for this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ODE2()
public ODE2(Function f1, Function f2, Variable indVar, Variable depVar1, Variable depVar2, double indIC, double indMax, double depIC1, double depIC2)
Method Detail |
public void setFunction1(Function f)
f
- -- a Function objectpublic void setFunction2(Function f)
f
- -- a Function objectpublic void setIndVar(Variable var)
var
- -- A variable representing the Independent variablepublic void setDepVar1(Variable var)
var
- -- A variablepublic void setDepVar2(Variable var)
var
- -- A variablepublic void setIndIC(double ic)
ic
- -- the initial conditionpublic double getIndIC()
public void setDepIC1(double ic)
ic
- -- the initial conditionpublic void setDepIC2(double ic)
ic
- -- the initial conditionpublic double getIndMax()
public void setIndMax(double max)
max
- -- the maximum value of the domainpublic void setNumSteps(int num)
public void setStepSize(double s)
s
- -- a double representing the step sizepublic void setEPS(double s)
public Point3D[] euler() throws VariableUndefinedException, UnacceptableVariableException, InfinityException
VariableUndefinedException
UnacceptableVariableException
InfinityException
public Point3D[] huenmethod() throws VariableUndefinedException, UnacceptableVariableException, InfinityException
VariableUndefinedException
UnacceptableVariableException
InfinityException
public Point3D[] rungeKutta4() throws VariableUndefinedException, UnacceptableVariableException
VariableUndefinedException
UnacceptableVariableException
public Point3D[] adaptRK45() throws VariableUndefinedException, UnacceptableVariableException, InfinityException, MinimumStepSizeException
VariableUndefinedException
UnacceptableVariableException
InfinityException
MinimumStepSizeException
|
MVT API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |