API & MCP

Everything a person can do on Numerical Equation Solver & Optimizer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Numerical Equation Solver & Optimizer

Finds every root of an equation such as cos(x) = x in an interval (sign changes refined with Brent’s method, touching roots detected), shows the iteration table of bisection or Newton’s method, solves systems of up to six nonlinear equations with a damped Newton method, and locates minima and maxima with Brent’s method or golden-section search. The numeric counterpart to the exact step-by-step solver; part of the Proofline math notebook.

Inputs of Numerical Equation Solver & Optimizer
FieldTypeDefaultDescription
problemselect (equation, system, minimum, maximum)"equation"Problem
equations (required)textarea—Equation, function or system. One equation (cos(x) = x, or x^3 - 2x - 5 meaning = 0), one function for minimum/maximum, or one equation per line for a system. Use + − * / ^, implicit products (2x), sin, cos, tan, exp, ln (natural log), log (base 10), sqrt, abs, pi and e. Angles are in radians.
variablestext—Unknowns. Default x; for a system a comma-separated list such as x, y (as many as equations).
methodselect (brent, bisection, newton, golden)"brent"Method. Systems always use Newton’s method.
fromnumber-10Interval from
tonumber10Interval to
starttext—Start value(s). Newton’s method: one number, or one per unknown for a system (default 1 for each unknown; for one equation the interval midpoint).
tolerancenumber1e-12Tolerance. Stop when the bracket, the step or the residual is below this value.
maxIterationsinteger100Iteration limit

Example request

All roots of cos(x) = x

curl -X POST https://prooflineequationsolver.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"problem":"equation","equations":"cos(x) = x","from":-5,"to":5}'

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-equation-solver": { "type": "http", "url": "https://prooflineequationsolver.usefulweb.site/mcp" }
  }
}