OdeIntegrator.DifferentialFunction Property

Gets or sets a function that should be integrated.

Definition

Namespace: Numerics.NET.Calculus.OrdinaryDifferentialEquations
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0
C#
public DifferentialFunction DifferentialFunction { get; set; }

Property Value

DifferentialFunction
A DifferentialFunction delegate.

Remarks

Use this property to define the system of differential equations. The delegate takes three arguments. The first is the current time. The second is a vector that contains the current value. The third is a vector that on output contains the first derivative. The third argument is also returned by the function.

After integration has started, call Restart() before assigning a different function. Reassigning the same delegate does not require a restart.

Exceptions

InvalidOperationExceptionIntegration has started and a different function is assigned without first restarting.

See Also