numericalMethods.calculus.odeSolving
Class ExampleODE.F

numericalMethods.calculus.odeSolving.ExampleODE.F
Enclosing class:
ExampleODE

public static class ExampleODE.F

In numericalMethods funtions are defined by a pair of interfaces describing parameter and value space seperatly. The ode x'(t) = sin( t ) cos( x ) y'(t) = sin( t ) sin( y ) is encoded as function from R^3 into R^3: F(t,x,y) = (*,x',y'). The first component of the value space is not used; this allows a nicer coding and is standart.


Field Summary
(package private)  double xPrime
          derivatives are the values of the ode-function
(package private)  double yPrime
          derivatives are the values of the ode-function
 
Constructor Summary
ExampleODE.F()
           
 
Method Summary
 int getDoubleArrayParameterLength()
           
 void getDoubleArrayValue(double[] v, int offset)
          Queries derivatives.
 int getDoubleArrayValueLength()
           
 void setDoubleArrayParameter(double[] p, int offset)
          Evaluates the derivatives
 

Field Detail

xPrime

double xPrime
derivatives are the values of the ode-function

yPrime

double yPrime
derivatives are the values of the ode-function
Constructor Detail

ExampleODE.F

public ExampleODE.F()
Method Detail

getDoubleArrayParameterLength

public int getDoubleArrayParameterLength()

getDoubleArrayValueLength

public int getDoubleArrayValueLength()

setDoubleArrayParameter

public void setDoubleArrayParameter(double[] p,
                                    int offset)
Evaluates the derivatives
Parameters:
p - paramter set
offset - is not used by ode solvers

getDoubleArrayValue

public void getDoubleArrayValue(double[] v,
                                int offset)
Queries derivatives.
Parameters:
v - array holds results after returning
offset - is not used by ode solvers