DependentVariableDerivatives.ComputeDerivatives Method (Double,Double[],Double[],Double[]) |
Compute the "fast" derivatives of the dependent variables, add them to the given
"slow" derivatives, and store them to the given array. "Fast" derivatives are ones
which are most important for the dynamics of the system and can be computed quickly.
Some integrators optimize performance by only computing "fast" intervals when only
an approximation of the overall derivative is required.
Namespace:
AGI.Foundation.NumericalMethods.Advanced
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntaxpublic virtual void ComputeDerivatives(
double x,
double[] y,
double[] slowDerivatives,
double[] derivativeArray
)
Public Overridable Sub ComputeDerivatives (
x As Double,
y As Double(),
slowDerivatives As Double(),
derivativeArray As Double()
)
public:
virtual void ComputeDerivatives(
double x,
array<double>^ y,
array<double>^ slowDerivatives,
array<double>^ derivativeArray
)
abstract ComputeDerivatives :
x : float *
y : float[] *
slowDerivatives : float[] *
derivativeArray : float[] -> unit
override ComputeDerivatives :
x : float *
y : float[] *
slowDerivatives : float[] *
derivativeArray : float[] -> unit
Parameters
- x
- Type: System.Double
The current independent variable value. - y
- Type:System.Double[]
The current dependent variable values. - slowDerivatives
- Type:System.Double[]
The cached "slow" derivatives to add to the derivativeArray. - derivativeArray
- Type:System.Double[]
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