Function Math.Get Numerical Differentiator Method
Creates a function of one variable that
represents the numerical derivative of the specified
function of one variable.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A delegate that represents a function of one variable that represents the numerical derivative of targetFunction
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Func<double, double> GetNumericalDifferentiator(
this Func<double, double> targetFunction
)
Parameters
Return Value
Func<Double, Double>A delegate that represents a function of one variable that represents the numerical derivative of targetFunction
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Func<Double, Double>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Remarks
Central differences are used for the calculation of the derivative.
Exceptions
Argument | targetFunction is null. |