API & MCP

Everything a person can do on ODE Solver (Runge–Kutta), a program or AI agent can do with the same inputs and get the identical result.

HTTP API

ODE Solver (Runge–Kutta)

Type a differential equation or a system such as x′ = v, v′ = −x with initial values and parameters, and get the solution table, a plot of every variable, a phase portrait for two variables and a CSV download. Uses the adaptive Dormand–Prince RK45 method with error control or classical fixed-step RK4, and reports steps and function evaluations. Part of the Proofline math notebook.

Inputs of ODE Solver (Runge–Kutta)
FieldTypeDefaultDescription
equations (required)textarea—Equations. One equation per line: y' = expression or dy/dt = expression. Right-hand sides may use the independent variable, every state variable and the parameters. Use + − * / ^, implicit products (2x), sin, cos, tan, exp, ln (natural log), log (base 10), sqrt, abs, pi and e. Angles are in radians.
initial (required)text—Initial values. One value per state variable at the start time, e.g. x = 1, v = 0.
parameterstext—Parameters. Optional constants used in the equations, e.g. a = 1.1, b = 0.4.
variabletext"t"Independent variable
tStartnumber0Start time
tEndnumber10End time
methodselect (rk45, rk4)"rk45"Method
tolerancenumber1e-8Tolerance (RK45). Relative error allowed per step; the absolute tolerance is 1/100 of it.
stepnumber—Step size (RK4). Default: 1/1000 of the interval.
outputPointsinteger101Output points. Equally spaced times in the table, plot and CSV (start and end included).

Example request

Exponential decay y′ = −k·y

curl -X POST https://prooflineodesolver.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"equations":"y' = -k*y","initial":"y = 1","parameters":"k = 0.5","tEnd":10}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "proofline-ode-solver": { "type": "http", "url": "https://prooflineodesolver.usefulweb.app/mcp" }
  }
}