FiniteDifferenceMethod.Backward Method

Constructs a new finite difference method that uses backward differences to approximate a derivative of the specified order.

Definition

Namespace: Numerics.NET.Calculus
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static FiniteDifferenceMethod Backward(
	int derivativeOrder,
	int accuracyOrder
)

Parameters

derivativeOrder  Int32
The order of the derivative to compute.
accuracyOrder  Int32
The accuracy order of the method.

Return Value

FiniteDifferenceMethod
A FiniteDifferenceMethod object.

Remarks

The accuracy order of the method is the smallest exponent of the step size in the error of the approximation. As a result, higher order methods allow for larger step sizes.

Backward finite difference methods only evaluate the function at values less than or equal to the point where the derivative is requested.

Backward differences are generally less accurate than central differences using the same number of points.

Exceptions

ArgumentOutOfRangeException

derivativeOrder is less than zero.

-or-

accuracyOrder is less than one.

See Also