Package org.apache.commons.math4.legacy.analysis.differentiation

This package holds the main interfaces and basic building block classes dealing with differentiation. The core class is DerivativeStructure which holds the value and the differentials of a function. This class handles some arbitrary number of free parameters and arbitrary differentiation order. It is used both as the input and the output type for the UnivariateDifferentiableFunction interface. Any differentiable function should implement this interface.

The UnivariateFunctionDifferentiator interface defines a way to differentiate a simple UnivariateFunction and get a UnivariateDifferentiableFunction.

Similar interfaces also exist for multivariate functions and for vector or matrix valued functions.