vec_math
Interface Differentiable

All Superinterfaces:
Derivative, Function

public interface Differentiable
extends Derivative

A function that also allows calculating of some of its derivatives. The differentiateAt(int, double) method returns the value of the n-th derivative at the stated value of the independant variable.

See Also:
Function, Multidimensional

Method Summary
 double differentiateAt(int n, double t)
          Calculates the value of the n-th derivative at the value of the independant variable stated.
 int getDerivativeOrder()
          Returns the maximum order of the derivative that can be calculated.
 
Methods inherited from interface vec_math.Derivative
derivative
 
Methods inherited from interface vec_math.Function
evaluate
 

Method Detail

getDerivativeOrder

int getDerivativeOrder()
Returns the maximum order of the derivative that can be calculated.


differentiateAt

double differentiateAt(int n,
                       double t)
Calculates the value of the n-th derivative at the value of the independant variable stated. If the function cannot calculate the required order, it is perfectly legal, but not required, to throw a runtime exception.

Parameters:
n - The order of the derivative to be evaluated.
t - The value of the independant variable.
Returns:
The value of the n-th derivateive at t.
Throws:
IllegalArgumentException - If the order requested is higher then the maximal order served.