diff-grok - v1.0.9
    Preparing search index...

    Function getJScode

    • Return JavaScript code that solves the given initial value problem

      Parameters

      • ivp: IVP

        initial value problem to be solved

      Returns string[]

      import {getIVP, getJScode} from 'diff-grok';

      const model = `
      #name: Example
      #equations:
      dx/dt = x + y - cos(t)
      dy/dt = x - y + sin(t)
      ...
      `;

      const ivp = getIVP(model);
      const lines = getJScode(ivp);