Home Developers Capabilities Nth root

CVP verified calculation capability

Nth root Calculation Capability

Principal real nth root of a with positive safe-integer index n (default 2).

Math Capability ID math.root version 1.0.6 CVP VERIFIED CURRENT Core

Model

nth root

Inputs / Outputs

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

SymbolQuantityUnitRole
aFinite binary64 number or strict decimal/scientific text ≤512 characters; nonzero-to-zero text rejects NUMERIC_UNDERFLOW—input
aInputFinite binary64 number or strict decimal/scientific text ≤512 characters; nonzero-to-zero text rejects NUMERIC_UNDERFLOW—input
nExact positive safe integer 1–9007199254740991—input
nInputExact positive safe integer 1–9007199254740991—input
indexExact positive safe integer 1–9007199254740991—input
review——output
api_version——output
api_contract_version——output
spec_version——output
pageCanonical calculator page URL—output
links——output

Trusted Math contract

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

FieldDeclaration
numeric_domainreal
exactnessfloat64
algorithmBinary64 identity n=1, Math.sqrt n=2, Math.cbrt n=3, signed Math.pow(|a|,1/n) otherwise.
valid_domainFinite binary64 radicand; exact positive safe-integer n≤9007199254740991, default2 only if omitted. Strict decimal/scientific text≤512 chars, matching aliases only.
singularity_policyEven-negative NOT_REAL; invalid index INVALID_INDEX; nonzero text rounded to zero NUMERIC_UNDERFLOW; unknown, blank/null and nonfinite inputs reject.
branch_policyPrincipal real; negative odd roots use −(|a|)^(1/n), distinct from complex principal power.
tolerancenot applicable — closed form; capability Evidence owns comparison, no global default
convergencenot applicable — non-iterative
conditioningRelative condition number in a is1/n away from zero; derivative unbounded at zero when n>1. Binary64 input, reciprocal-exponent error and output rounding are distinct; rounded powers are not exactness proofs.
roundingieee754_round_ties_to_even
overflowieee754_nonfinite_or_coded_error
reproducibilitydeterministic algorithm + Capability@Version
independent_oracleCPython Decimal250 exp/ln on exact normalized binary64 inputs, declared fixed vectors≤64ULP, identity exact; original19 O3 vectors retain0/2/64ULP by path. Not exhaustive.
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.

∛27 = 3; ⁴√16 = 2; √27 ≈ 5.19615242271

Open this example in the calculator

Trust

CVP VERIFIED · CVP protocol 1.0.0-proposed · Core assurance. 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· View Manifest · CVP overview · Specification
Assurance
Core
Declared partition coverage
PASS · 7/7 declared partitions (sqrt-path, cbrt-path, pow-path, identity-n1, odd-negative, invalid-domain, xcal)
Calculation version
1.0.6
Verification
24/24 calculation tests · 10/10 legacy golden · 14/14 legacy boundary
Production surface contract
6/6
Versions
Calculation 1.0.6 · CVP protocol 1.0.0-proposed · Evidence 2026-10-26.root-complete-contract-v2
Verification revision
2026-10-26.root-complete-contract-v2 · 4/4 property · digest e1f0a9ed78e2
Reference
O1 model · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 numerical_behavior · O2 expected_values · O2 numerical_behavior
Numerical scope
Path-specific ULP vs O3 applies only to the 19 published tabulated vectors: identity n=1 (0 ULP); Math.sqrt including tiny/huge (≤2); Math.cbrt including odd-negative and tiny/huge (≤2); moderate Math.pow including odd-negative, ⁸√15, and max safe n (≤2); extreme Math.pow at |a|=1e±300 (≤64). It is not a whole-domain guarantee. Even roots of a<0 and illegal n are contract errors (NOT_REAL / INVALID_INDEX), not ULP claims.; plus103 independently generated Decimal250 reference vectors with path-specific0/2/64ULP, scalar type strict and identity exact; not whole-domain.
Interfaces
PASS · UI (SSR) / REST / MCP / URL→result→graph
Success 1/1. Integration: URL → SSR result → Live graph current point (4/4). Hydration/slider/history are URL-canonical contracts, not a live browser session.
CVP suite
108/108 golden · 14/14 CVP boundary · 17/17 invalid · 4/4 property · 2/2 metamorphic · 3/3 round-trip · 19/19 O3 · 1/1 cross-interface · 5/5 cross-calculator · 4/4 URL→result→graph · 6/6 CVP contract
Supplemental domain review
Not performed
Named expert review
Not performed
Version lock
Supported (409 VERSION_MISMATCH)
Artifact consistency
Build verified · 1.0.6 (workspace artifacts agree)
Review-policy tier
Engine tested — catalog token engine_tested; supplemental; not CVP status
This calculator CURRENT · Public schema 1.0.6 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 6/6.

curl -sS -X POST 'https://www.calculatorx.com/api/v1/calc/root' \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"a":16,"n":2},"calculation_version":"1.0.6"}'

POST /api/v1/calc/root. This is a POST calculate endpoint — do not GET it.

Full REST contract: REST API docs.

Tool id
root
Engine
root
REST
POST /api/v1/calc/root
MCP
execute_calculation with capability_id: "math.root"
Agent input schema
Canonical (MCP / Agent)
REST input schema
Compatibility (tol[] / tol1…)
Output schema
JSON Schema (latest)
Versioned input schema
Immutable pin (1.0.6)
Versioned output schema
Immutable pin (1.0.6)

Operations

Declared calculation modes for this capability.

References

Human-readable sources plus CVP reference evidence classes.

Sources

Derived identities

Reference evidence classes: O1 model · O3 expected_values · O3 numerical_behavior · O2 expected_values · O2 numerical_behavior · 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.root"},"_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.0.6) when the result must stay reproducible.

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