Chalkboard - v3.0.1
    Preparing search index...

    Function sample

    • Samples the solution at multiple times using Chalkboard.diff.at.

      Parameters

      • sol: { t: number[]; y: number[][] }

        Solution of an ODE

      • times: number[]

        Times to sample at

      Returns number[][]

      const ode = Chalkboard.diff.harmonic();
      const sol = Chalkboard.diff.solve(ode, { t0: 0, t1: 20, steps: 2000, y0: { y0: 1, dy0: 0 } });
      const ys = Chalkboard.diff.sample(sol, [0, 0.5, 1.0, 1.5, 2.0]);