FunctionMath.GetBackwardDifferentiator Method

Creates a function of one variable that represents the numerical derivative of the specified function of one variable using backward differences.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Func<double, double> GetBackwardDifferentiator(
	this Func<double, double> targetFunction
)

Parameters

targetFunction  Func<Double, Double>
A delegate that represents a function of one variable.

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

Backward differences are used for the calculation of the derivative.

Exceptions

ArgumentNullExceptiontargetFunction is null.

See Also