Returns an approximation to the derivative of a function.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static double CentralDerivative(
Func<double, double> targetFunction,
double x
)
Public Shared Function CentralDerivative (
targetFunction As Func(Of Double, Double),
x As Double
) As Double
public:
static double CentralDerivative(
Func<double, double>^ targetFunction,
double x
)
static member CentralDerivative :
targetFunction : Func<float, float> *
x : float -> float
Parameters
- targetFunction
- Type: SystemFuncDouble, Double
A delegate that represents a function of one variable that
specifies the function to differentiate. - x
- Type: SystemDouble
The point at which to evaluate the
derivative.
Return Value
Type:
DoubleA numerical approximation to the derivative
of
targetFunction at
x.
Numerical Libraries
Supported in: 5.x, 4.x
Reference