Click or drag to resize
Accord.NET (logo)

FiniteDifferencesDerivative Method (FuncDouble, Double, Double, Int32)

Computes the derivative for a simpler unidimensional function.

Namespace:  Accord.Math.Differentiation
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Derivative(
	Func<double, double> function,
	double value,
	int order
)
Request Example View Source

Parameters

function
Type: SystemFuncDouble, Double
The function to be differentiated.
value
Type: SystemDouble
The value x at which the derivative should be evaluated.
order
Type: SystemInt32
The derivative order that should be obtained. Default is 1.

Return Value

Type: Double
The derivative of the function at the point value.
See Also