DependentVariableDifferentialEquationAddDerivatives 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.2.419.0 (24.2.419.0)
Syntax public override void AddDerivatives(
double x,
double[] y,
DerivativeMode mode,
double[] derivativeArray
)
Public Overrides 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
) override
abstract AddDerivatives :
x : float *
y : float[] *
mode : DerivativeMode *
derivativeArray : float[] -> unit
override 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