Chalkboard - v3.0.4
    Preparing search index...

    Function LotkaVolterra

    • Defines a Lotka–Volterra predator-prey model: x' = αx - βxy, y' = δxy - γy.

      Parameters

      • alpha: number = 1

        Prey growth rate

      • beta: number = 1

        Predation rate

      • gamma: number = 1

        Predator death rate

      • delta: number = 1

        Predator reproduction rate

      Returns ChalkboardODE

      const ode = Chalkboard.diff.LotkaVolterra(1.5, 1, 3, 1);
      const derivative = ode.rule(0, [10, 5]); // Evaluates predator-prey dynamics