All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface berkeley.cs.dmc.numericalMethods.Derivative

public interface Derivative
The Derivative interface defines functions required by the numerical integration methods. These functions evaluate the derivatives of the function being integrated, as well as giving the dimension (number of variables).

See Also:
Integrator

Method Index

 o derivs(double, int, double[], double[])
The routine to evaluate the derivatives of a function.
 o getDimension()
Supply the dimension of the system (number of unknown variables).

Methods

 o getDimension
 public abstract int getDimension()
Supply the dimension of the system (number of unknown variables).

Returns:
The dimension
 o derivs
 public abstract void derivs(double x,
                             int num,
                             double y[],
                             double dydx[])
The routine to evaluate the derivatives of a function. The derivatives should be placed in dydx.

Parameters:
x - The ordinate value at which to evaluate the derivative. Frequently this corresponds to time.
num - The number of variables in y, and the number of derivatives required. This may be the same as the dimension, but might also be less.
y - The current values for the unknown variables at x.
dydx - Output array for the derivative values. dydx[i] is the partial derivative of y[i] with respect to x.

All Packages  Class Hierarchy  This Package  Previous  Next  Index