DependentVariableDerivativesAddDerivatives Method |
Compute and add the derivatives of the dependent variables to the given derivativeArray.
Since the derivativeArray may already contain derivative information from other sources,
do not overwrite existing values but instead add the derivatives of the given mode to
the existing values.
Namespace:
AGI.Foundation.NumericalMethods.Advanced
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public abstract void AddDerivatives(
double x,
double[] y,
DerivativeMode mode,
double[] derivativeArray
)
Public MustOverride Sub AddDerivatives (
x As Double,
y As Double(),
mode As DerivativeMode,
derivativeArray As Double()
)
public:
virtual void AddDerivatives(
double x,
array<double>^ y,
DerivativeMode mode,
array<double>^ derivativeArray
) abstract
abstract AddDerivatives :
x : float *
y : float[] *
mode : DerivativeMode *
derivativeArray : float[] -> unit
Parameters
- x
- Type: SystemDouble
The current independent variable value. - y
- Type: SystemDouble
The current dependent variable values. - mode
- Type: AGI.Foundation.NumericalMethodsDerivativeMode
The mode in which to compute the derivatives. Make sure to only compute
and add the derivatives requested by the given mode or it may cause each
derivative to be added more than once. - derivativeArray
- Type: SystemDouble
The derivative array as output.
Upon returning, each element in the array should represent the first derivative
of the corresponding element in the y.
See Also