Home Developers Capabilities Ordinary differential equation

CVP verified calculation capability

Ordinary differential equation Calculation Capability

Scalar first-order IVP y′=f(t,y) by Euler or RK4. rhs linear is y′=k y; poly is y′=p(t). Not rk45, not systems, not PDE, not CAS.

Math · Numerical Capability ID math.numerical.ode version 1.1.1 CVP VERIFIED CURRENT Core

Model

Euler

Inputs / Outputs

Canonical symbols for this capability. Agent schemas remain the contract.

SymbolQuantityUnitRole
y0Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input / output
t0Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input / output
t1Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input / output
kFinite binary64 decimal number or decimal text; nonzero text underflow is rejected—input / output
nMust evaluate to an integer1–10000—input / output
method——input / output
rhs——input / output
coeffsConstant-first degree0–8 coefficients—input / output
f——input
integrand——input
y_0Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
initialFinite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
t_0Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
aFinite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
t_1Finite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
bFinite binary64 decimal number or decimal text; nonzero text underflow is rejected—input
coefficientsConstant-first degree0–8 coefficients—input
h——output
y——output
abs_err——output
diagnostics——output

Trusted Math contract

Inspectable numeric contract for this Capability@Version. Not a rewrite of the engine.

FieldDeclaration
numeric_domainreal
exactnessfloat64
algorithmscalar first-order IVP Euler / RK4; binary-scaled linear amplification recurrence; anchored representable time grid; scaled exponential / exact dyadic polynomial reference and composite quadrature; representable time nodes, binary64 model inputs and h; 12-digit endpoints/errors without nonzero clamping
valid_domainfinite y0, t0, t1, h; integer n in [1,10000]; yprime=k*y or degree <=8 polynomial in t; strict decimal inputs with matching aliases; explicit empty fields do not default; polynomial constant-first lists1–9
singularity_policyINVALID_INPUT for degenerate t-span; NUMERICAL_RANGE_ERROR for zero/nonfinite h, nonfinite step/reference/error or nonzero analytic underflow
branch_policynot applicable — real iterate
tolerancenote: fixed step; Euler global error O(h), RK4 global O(h^4) for smooth problems; no adaptive/user-tolerance acceptance, diagnostics.accuracy_status=not_assessed
convergencecriterion: fixed-step march; not RK45 / not a system
conditioningstiff f is out of seed scope; structured diagnostics and warnings flag |R(kh)| >=1, negative amplification, nonzero-reference numerical zero and subnormal precision; stability is distinct from accuracy
roundingieee754_round_ties_to_even
overflowieee754_nonfinite_or_coded_error
reproducibilitydeterministic algorithm + Capability@Version
independent_oracleO2 separate implementation plus exact-input Python Decimal 100/160 and100/180-digit plus Fraction discrete-quadrature listed fixtures; not a full-domain error guarantee
golden_vectorsEvidence golden + boundary + property (and published_reference_case when listed)

Assumptions / Validity

Declared scope for this capability. Do not use it outside this domain.

Assumptions

Example

One numerical check. The calculator page holds worked steps and FAQ.

rk4 linear k=1 y0=1 t0=0 t1=1 n=40 → exact=e

Open this example in the calculator

Trust

CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published methods. Computational verification is defined by CVP. Supplemental domain review (internal) and named expert review are defined by the Review policy and do not by themselves determine CVP conformance.

CVP
CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance · all published methods· View Manifest · CVP overview · Specification
Verified scope
all published methods
Assurance
Core
Declared partition coverage
PASS · 7/7 declared partitions (exponential-range, shifted-time, scaled-results, numerical-range, euler, rk4, invalid-domain)
Calculation version
1.1.1
Verification
9/9 calculation tests · 3/3 legacy golden · 2/2 legacy boundary · 4/4 legacy property
Production surface contract
5/5
Versions
Calculation 1.1.1 · CVP protocol 1.0.0-proposed · Evidence 2026-10-28.meta-metrics-v2
Verification revision
2026-10-28.meta-metrics-v2 · 1/1 property · digest 1092bffa8354
Reference
O1 model · O2 expected_values · O3 expected_values · O2 expected_values · O2 numerical_behavior
Numerical scope
Relative 1e-8 comparison of y and exact against listed fixed-step references; not a whole-domain accuracy guarantee or a user-tolerance acceptance.
Interfaces
PASS · UI (SSR) / REST / MCP
ui-ssr is query-result HTML, not a live browser session. Error-path engine·REST·MCP 2/2 (status, code, calculation_version). SSR compared on URL-canonical requested calculations; empty query is idle (not an error) and JSON-typed object/array inputs are REST/MCP-only.
CVP suite
141/141 golden · 2/2 CVP boundary · 17/17 invalid · 1/1 property · 2/2 metamorphic · 12/12 O3 · 8/8 cross-interface · 1/1 cross-calculator · 5/5 CVP contract
Supplemental domain review
Not performed
Named expert review
Not performed
Version lock
Supported (409 VERSION_MISMATCH)
Artifact consistency
Build verified · 1.1.1 (workspace artifacts agree)
Review-policy tier
Engine tested — catalog token engine_tested; supplemental; not CVP status
This calculator CURRENT · Public schema 1.1.1 matches · Semantic contract ✓ · Production attested · Public/cache ✓ · Origin ✓

Call this capability

Human page, REST, and MCP share the same engine and calculation_version. Build verified hashes workspace artifacts only. After deploy, attest:production GETs canonical URLs twice — the public/cached view an Agent actually hits, and origin — including every /capabilities/{id} HTML page. Public Capability HTML version must match catalog before production attestation passes. Live Trust rows above fetch /.well-known/calculatorx-production-attestation.json and the output schema const. Build hashes: release integrity. That proves currently published page / engine / schema / evidence / MCP agree — not that a historical version is independently immutable. Reference Calculation Standard — Production surface contract 5/5.

curl -sS -X POST 'https://www.calculatorx.com/api/v1/calc/ordinary-differential-equation' \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"method":"rk4","rhs":"linear","k":1,"y0":1,"t0":0,"t1":1,"n":40},"calculation_version":"1.1.1"}'

POST /api/v1/calc/ordinary-differential-equation. This is a POST calculate endpoint — do not GET it.

Full REST contract: REST API docs.

Tool id
ordinary-differential-equation
Engine
ordinary-differential-equation
REST
POST /api/v1/calc/ordinary-differential-equation
MCP
execute_calculation with capability_id: "math.numerical.ode"
Agent input schema
Canonical (MCP / Agent)
Output schema
JSON Schema (latest)
Versioned input schema
Immutable pin (1.1.1)
Versioned output schema
Immutable pin (1.1.1)

Operations

Declared calculation modes for this capability.

References

Human-readable sources plus CVP reference evidence classes.

Sources

Reference evidence classes: O1 model · O2 expected_values · O3 expected_values · O2 expected_values · O2 numerical_behavior

Try with an agent

Inspect, then execute. Same engine as REST and the human calculator.

curl -sS -X POST 'https://www.calculatorx.com/mcp' \
  -H 'Content-Type: application/json' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: inspect_capability' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"inspect_capability","arguments":{"capability_id":"math.numerical.ode"},"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"calculatorx-docs-example","version":"1.0.0"},"io.modelcontextprotocol/clientCapabilities":{}}}}'

Pin calculation_version (1.1.1) when the result must stay reproducible.

Inspect the trust tier and required assurance level before execution. Full protocol notes: MCP docs.