RungeKuttaAlgorithm Constructor (Double, Double, Double) |
Initializes a new instance of a Runge-Kutta algorithm with the given Butcher Tableau.
y[n+1] = y[n] + h * Sum(i=0 to s){ b[i]*k[i] }
k[i] = f(t[n] + c[i]*h, y[n] + Sum(j=0 to i-1){ a[i,j] * k[j] } )
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 RungeKuttaAlgorithm(
double[] stages,
double[] weights,
double[][] coefficients
)
Public Sub New (
stages As Double(),
weights As Double(),
coefficients As Double()()
)
public:
RungeKuttaAlgorithm(
array<double>^ stages,
array<double>^ weights,
array<array<double>^>^ coefficients
)
new :
stages : float[] *
weights : float[] *
coefficients : float[][] -> RungeKuttaAlgorithm
Parameters
- stages
- Type: SystemDouble
The coefficients "c".
These represent the factors multiplying the step size by which to advance the independent variable at each stage.
- weights
- Type: SystemDouble
The coefficients "b".
These represent the coefficients of the "k" stages summed together to represent the slope.
- coefficients
- Type: SystemDouble
The coefficients "a".
These represent the factors multiplying the derivatives to provide the intermediate state information.
See Also