Contains methods for numerically approximating the derivative of a function.

Namespace: Extreme.Mathematics.Calculus
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public NotInheritable Class NumericalDifferentiator
C#
public sealed class NumericalDifferentiator
C++
public ref class NumericalDifferentiator sealed

Methods

IconTypeDescription
static memberBackwardDerivative(RealFunction, Double)
Returns an approximation to the derivative of a function by using only function values at x and and values smaller than x.
static memberBackwardDerivative(RealFunction, Double, Double)
Returns an approximation to the derivative of a function by using only function values at x and and values smaller than x.
static memberBackwardDerivative(RealFunction, Double, Double, Int32)
Returns an approximation to the derivative of a function by using only function values at x and and values smaller than x.
static memberCentralDerivative(RealFunction, Double)
Returns an approximation to the derivative of a function.
static memberCentralDerivative(RealFunction, Double, Double)
Returns an approximation to the derivative of a function.
static memberCentralDerivative(RealFunction, Double, Double, Int32)
Returns an approximation to the derivative of a function.
static memberCreateBackwardDelegate(RealFunction)
Creates a RealFunction that represents the numerical derivative of the specified RealFunction using backward differences.
static memberCreateDelegate(RealFunction)
Creates a RealFunction that represents the numerical derivative of the specified RealFunction.
static memberCreateForwardDelegate(RealFunction)
Creates a RealFunction that represents the numerical derivative of the specified RealFunction using forward differences.
static memberCreateGradientDelegate(MultivariateRealFunction)
Returns a delegate that numerically evaluates the gradient of a multivariate function.
static memberCreateJacobianDelegate(FastMultivariateVectorFunction)
Returns a delegate that numerically evaluates the Jacobian of a multivariate vector function.
static memberDerivative(RealFunction, Double)
Returns an approximation to the derivative of a function.
static memberDerivative(RealFunction, Double, DifferencesDirection)
Returns an approximation to the derivative of a function.
static memberDerivative(RealFunction, Double, DifferencesDirection, Int32)
Returns an approximation to the derivative of a function.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
static memberForwardDerivative(RealFunction, Double)
Returns an approximation to the derivative of a function by using only function values at x and and values greater than x.
static memberForwardDerivative(RealFunction, Double, Double)
Returns an approximation to the derivative of a function by using only function values at x and and values greater than x.
static memberForwardDerivative(RealFunction, Double, Double, Int32)
Returns an approximation to the derivative of a function by using only function values at x and and values greater than x.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
ToString()
Returns a String that represents the current Object.

Remarks

Use the NumericalDifferentiator class to calculate numerical derivatives of functions, or to create a RealFunction delegate that evaluates the numerical derivative of a function.

All methods are staticSharedstatic in Visual Basic). The Derivative(RealFunction, Double) method approximates a numerical derivative of a function. Overloads exist that let you specify the method of choice (forward, central, or backward differences), and return an estimate for the error in the approximation.

A series of methods lets you create a RealFunction delegate that evaluates the numerical derivative of an arbitrary function. You can then use this delegate as you would any other RealFunction. For example, you can use NewtonRaphsonSolver to find a root of the function using a numerical derivative.

Inheritance Hierarchy

System.Object
  Extreme.Mathematics.Calculus.NumericalDifferentiator