MVT API

math.numerics
Class ODE2

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

public class ODE2
extends java.lang.Object


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

ODE2

public ODE2()

ODE2

public ODE2(Function f1,
            Function f2,
            Variable indVar,
            Variable depVar1,
            Variable depVar2,
            double indIC,
            double indMax,
            double depIC1,
            double depIC2)
Method Detail

setFunction1

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

Parameters:
f - -- a Function object

setFunction2

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

Parameters:
f - -- a Function object

setIndVar

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

Parameters:
var - -- A variable representing the Independent variable

setDepVar1

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

Parameters:
var - -- A variable

setDepVar2

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

Parameters:
var - -- A variable

setIndIC

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

Parameters:
ic - -- the initial condition

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

Parameters:
ic - -- the initial condition

setDepIC2

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

Parameters:
ic - -- the initial condition

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

setEPS

public void setEPS(double s)

euler

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

huenmethod

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

rungeKutta4

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

adaptRK45

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

MVT API

mvt.icons