Click or drag to resize

xBaseOdeRungeKuttaSolve(Double, Double) Method

Computes the solution of the differntial equations.

Namespace: DotNumerics.ODE
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public double[,] Solve(
	double[] y0,
	double[] tspan
)
Request Example View Source

Parameters

y0  Double
A vector of size N containing the initial conditions ( at t0). N is the number of differential equations.
tspan  Double
A vector specifying the interval of integration (t0,..,tf).

Return Value

Double
A matrix that contains the solution of the differential equations [T, y1,..,yN]. The first column contains the time points and each row corresponds to the solution at a time returned in the corresponding row.
See Also