MVT API

math.numerics
Class ODE3

java.lang.Object
  |
  +--math.numerics.ODE3

public class ODE3
extends java.lang.Object


Constructor Summary
ODE3()
           
ODE3(Function f1, Function f2, Function f3, Variable indVar, Variable depVar1, Variable depVar2, Variable depVar3, double indIC, double indMax, double depIC1, double depIC2, double depIC3)
           
 
Method Summary
 Point4D[] adaptRK45()
           
 Point4D[] euler()
           
 double getIndIC()
          gets the initial condition for the independent variable
 double getIndMax()
          gets the max value for the independent variable
 Point4D[] huenmethod()
           
 Point4D[] 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 setDepIC3(double ic)
          sets the initial condition for the third 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 setDepVar3(Variable var)
          sets the third dependent variable for this class
 void setFunction1(Function f)
          sets the first Function for this class
 void setFunction2(Function f)
          sets the second Function for this class
 void setFunction3(Function f)
          sets the third 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

ODE3

public ODE3()

ODE3

public ODE3(Function f1,
            Function f2,
            Function f3,
            Variable indVar,
            Variable depVar1,
            Variable depVar2,
            Variable depVar3,
            double indIC,
            double indMax,
            double depIC1,
            double depIC2,
            double depIC3)
Method Detail

setFunction1

public void setFunction1(Function f)
sets the first Function for this class


setFunction2

public void setFunction2(Function f)
sets the second Function for this class


setFunction3

public void setFunction3(Function f)
sets the third Function for this class


setIndVar

public void setIndVar(Variable var)
sets the independent variable for this class

Parameters:
var - -- the Independent variable

setDepVar1

public void setDepVar1(Variable var)
sets the first dependent variable for this class


setDepVar2

public void setDepVar2(Variable var)
sets the second dependent variable for this class


setDepVar3

public void setDepVar3(Variable var)
sets the third dependent variable for this class


setIndIC

public void setIndIC(double ic)
sets the initial condition for the independent variable


getIndIC

public double getIndIC()
gets the initial condition for the independent variable


setDepIC1

public void setDepIC1(double ic)
sets the initial condition for the first dependent variable


setDepIC2

public void setDepIC2(double ic)
sets the initial condition for the second dependent variable


setDepIC3

public void setDepIC3(double ic)
sets the initial condition for the third dependent variable


getIndMax

public double getIndMax()
gets the max value for the independent variable


setIndMax

public void setIndMax(double max)
sets the max. value for the independent variable

Parameters:
max - -- the maximum value of the domain

setNumSteps

public void setNumSteps(int num)
Sets the number of steps used for the solver


setStepSize

public void setStepSize(double s)
sets the step size for this class

Parameters:
s - -- a double representing the step size

euler

public Point4D[] euler()
                throws VariableUndefinedException,
                       UnacceptableVariableException,
                       InfinityException
VariableUndefinedException
UnacceptableVariableException
InfinityException

huenmethod

public Point4D[] huenmethod()
                     throws VariableUndefinedException,
                            UnacceptableVariableException,
                            InfinityException
VariableUndefinedException
UnacceptableVariableException
InfinityException

rungeKutta4

public Point4D[] rungeKutta4()
                      throws VariableUndefinedException,
                             UnacceptableVariableException
VariableUndefinedException
UnacceptableVariableException

adaptRK45

public Point4D[] adaptRK45()
                    throws VariableUndefinedException,
                           UnacceptableVariableException,
                           InfinityException,
                           MinimumStepSizeException
VariableUndefinedException
UnacceptableVariableException
InfinityException
MinimumStepSizeException

MVT API

mvt.icons