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
POST https://prooflineequationsolver.usefulweb.site/api/v1/calculate– run Numerical Equation Solver & OptimizerGET https://prooflineequationsolver.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
problem | select (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. |
variables | text | — | Unknowns. Default x; for a system a comma-separated list such as x, y (as many as equations). |
method | select (brent, bisection, newton, golden) | "brent" | Method. Systems always use Newton’s method. |
from | number | -10 | Interval from |
to | number | 10 | Interval to |
start | text | — | 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). |
tolerance | number | 1e-12 | Tolerance. Stop when the bracket, the step or the residual is below this value. |
maxIterations | integer | 100 | Iteration 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)
- Streamable HTTP endpoint:
https://prooflineequationsolver.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
proofline_equation_solver - Local stdio connector:
node src/mcp-stdio.ts --tool=proofline-equation-solver
{
"mcpServers": {
"proofline-equation-solver": { "type": "http", "url": "https://prooflineequationsolver.usefulweb.site/mcp" }
}
}