Click or drag to resize

NumericalDerivativeEvaluateDerivative(FuncDouble, Double, Double, Int32, NullableDouble) Method

Evaluates the derivative of a scalar univariate function.

Namespace: Altaxo.Calc.Differentiation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public double EvaluateDerivative(
	Func<double, double> f,
	double x,
	int order,
	double? currentValue = null
)

Parameters

f  FuncDouble, Double
Function handle.
x  Double
Point at which to compute the derivative.
order  Int32
Derivative order.
currentValue  NullableDouble  (Optional)
Current function value at center.

Return Value

Double
Function derivative at x of the specified order.
Remarks
Supplying the optional argument currentValue will reduce the number of function evaluations required to calculate the finite difference derivative.
See Also