Interface Integrator

Abstract integrator interface

interface Integrator {
    initialise(t: number, y: number[]): Integrator;
    run(tEnd: number): (t: number[]) => number[][];
    statistics(): object;
}

Implemented by

Methods

  • Initialise the solver

    Parameters

    • t: number

      The time to start integrating from

    • y: number[]

      The initial conditions

    Returns Integrator

  • Integrate the solution through to some time

    Parameters

    • tEnd: number

      End time of the integration

    Returns (t: number[]) => number[][]

  • Return statistics about the integration so far

    Returns object