Creates a function of one variable that
represents the derivative of the specified
function of one variable.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static FunctionWithDerivative GetValueAndDerivative(
Expression<Func<double, double>> targetFunction
)
Public Shared Function GetValueAndDerivative (
targetFunction As Expression(Of Func(Of Double, Double))
) As FunctionWithDerivative
public:
static FunctionWithDerivative^ GetValueAndDerivative(
Expression<Func<double, double>^>^ targetFunction
)
static member GetValueAndDerivative :
targetFunction : Expression<Func<float, float>> -> FunctionWithDerivative
Parameters
- targetFunction
- Type: System.Linq.ExpressionsExpressionFuncDouble, Double
A lambda expression that represents a function of one variable.
Return Value
Type:
FunctionWithDerivativeA delegate that represents a function of one variable that
represents the numerical derivative of
targetFunction
The derivative is calculated symbolically from the supplied lambda expression.
The expression must not contain loops or blocks. If functions are encountered for
which no symbolic derivative is available, a numerical approximation is used.
Reference