Attempts to get an expression for the symbolic derivative of a method, or the numerical derivative if
no symbolic derivative was defined.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool TryGetSymbolicOrNumericalDerivative(
MethodInfo method,
int position,
out LambdaExpression expression
)
Public Shared Function TryGetSymbolicOrNumericalDerivative (
method As MethodInfo,
position As Integer,
<OutAttribute> ByRef expression As LambdaExpression
) As Boolean
public:
static bool TryGetSymbolicOrNumericalDerivative(
MethodInfo^ method,
int position,
[OutAttribute] LambdaExpression^% expression
)
static member TryGetSymbolicOrNumericalDerivative :
method : MethodInfo *
position : int *
expression : LambdaExpression byref -> bool
Parameters
- method
- Type: System.ReflectionMethodInfo
The method for which the symbolic derivative is being defined. - position
- Type: SystemInt32
The position of the argument with respect to which the derivative is taken. - expression
- Type: System.Linq.ExpressionsLambdaExpression
On return, an expression that evaluates the symbolic derivative of
method with respect to its positionth argument.
Return Value
Type:
Boolean if the symbolic derivative could be found; otherwise
.
Reference