{
  "format": 1,
  "method": "bdf2",
  "version": "0.1.0",
  "interface": "start(f,J,t,y,h) returns one backward Euler step. step(f,J,t,previous,current,h) advances from t to t+h, with previous at t-h. When previous is absent, start on the first step; otherwise use BDF2 from the first step.",
  "problems": {
    "manufactured": "f(t,y)=[cos(t)-y[0]+sin(t)], J=[[-1]].",
    "coupled": "f(t,y)=[-4*y[0]+2*y[1]+t,-y[0]-3*y[1]+t^2], J=[[-4,2],[-1,-3]].",
    "nonlinear": "f(t,y)=[t-y[0]^2], J=[[-2*y[0]]].",
    "fast": "f(t,y)=[-1e6*y[0]], J=[[-1e6]]."
  },
  "cases": [
    {
      "name": "implicit startup only",
      "problem": "manufactured",
      "t": 0.4,
      "y": [
        0.6
      ],
      "h": 0.31,
      "steps": 1,
      "expected": [
        0.7917256874608656
      ],
      "tol": 2e-12
    },
    {
      "name": "history and endpoint time",
      "problem": "manufactured",
      "t": 0.5,
      "y": [
        0.6
      ],
      "h": 0.17,
      "steps": 1,
      "previous": [
        0.48
      ],
      "expected": [
        0.7178546712550656
      ],
      "tol": 2e-12
    },
    {
      "name": "coupled Jacobian",
      "problem": "coupled",
      "t": 0.3,
      "y": [
        0.4,
        -0.7
      ],
      "h": 0.12,
      "steps": 6,
      "expected": [
        0.16530513606554517,
        0.07318886786275806
      ],
      "tol": 2e-12
    },
    {
      "name": "nonlinear implicit residual",
      "problem": "nonlinear",
      "t": 0.3,
      "y": [
        0.4
      ],
      "h": 0.17,
      "steps": 4,
      "expected": [
        0.664159104886767
      ],
      "tol": 2e-12
    },
    {
      "name": "stiff damping with startup",
      "problem": "fast",
      "t": 0,
      "y": [
        1
      ],
      "h": 0.1,
      "steps": 3,
      "expected": [
        -1.4999175025124397e-10
      ],
      "tol": 2e-12
    }
  ]
}
