{
  "format": 1,
  "method": "gauss-legendre-4",
  "version": "0.1.0",
  "interface": "step(f,J,t,y,h) returns y(t+h) for a signed h; repeat for the specified number of steps.",
  "problems": {
    "canonical": "P=p+q^2/2; f=[P,-q-q*P]; J=[[q,1],[-1-P-q^2,-q]].",
    "rotation": "f=[-y*z/6,2*x*z/3,-x*y/2]; J=[[0,-z/6,-y/6],[2*z/3,0,2*x/3],[-y/2,-x/2,0]].",
    "forced": "f=[t-x*y,t^2-y+x]; J=[[-y,-x],[1,-1]].",
    "imaginary": "f=[-40*y,40*x]; J=[[0,-40],[40,0]]."
  },
  "cases": [
    {
      "problem": "canonical",
      "t": 0,
      "y": [
        0.7,
        0.3
      ],
      "h": 0.34,
      "steps": 3,
      "expected": [
        0.8307412154027236,
        -0.6562706912511992
      ],
      "tol": 3e-12
    },
    {
      "problem": "rotation",
      "t": 0,
      "y": [
        0.7,
        0.4,
        0.8
      ],
      "h": 0.23,
      "steps": 4,
      "expected": [
        0.6391221644847502,
        0.6972025784930168,
        0.6288333828662538
      ],
      "tol": 3e-12
    },
    {
      "problem": "forced",
      "t": 0.4,
      "y": [
        0.3,
        -0.2
      ],
      "h": 0.32,
      "steps": 2,
      "expected": [
        0.7232978020610037,
        0.42437336465237097
      ],
      "tol": 3e-12
    },
    {
      "problem": "imaginary",
      "t": 2,
      "y": [
        1,
        0
      ],
      "h": -0.5,
      "steps": 1,
      "expected": [
        0.8253952856727134,
        0.5645552429915608
      ],
      "tol": 3e-12
    }
  ]
}
