{
  "capability_id": "math.root",
  "tool_id": "root",
  "engine": "root",
  "calculation_version": "1.0.5",
  "generated_at": "2026-10-26T05:36:26.053Z",
  "engine_build": "2026-10-14",
  "test_count": 24,
  "passed": 24,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "passed": 10,
      "total": 10
    },
    "boundary": {
      "passed": 14,
      "total": 14
    },
    "property": {
      "passed": 0,
      "total": 0
    }
  },
  "engine_tested": true,
  "expert_reviewed": false,
  "internally_reviewed": false,
  "review_kind": null,
  "source_checked": true,
  "reviewed_by": null,
  "reviewer_role": null,
  "last_reviewed": null,
  "expert_review": {
    "status": "optional_not_performed",
    "reviewer": null,
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "note": "Domain expert review is optional under CVP (CVP-EXP-01). Absence does not block CVP Verified. See Review policy for supplemental domain assurance."
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/math/root",
  "api": "https://www.calculatorx.com/api/v1/calc/root",
  "schema_input": "https://www.calculatorx.com/schemas/math.root.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.root.output.json",
  "assumptions": [
    "Real principal root only. This engine does not return complex values.",
    "Index n is a positive safe integer (1st, square, cube, 4th, …, nth root). Generalized powers a^(1/n) with non-integer, negative, or non-safe-integer n belong on the Exponent calculator.",
    "Even n requires a ≥ 0 and returns b ≥ 0. Odd n allows a < 0 (for example ∛(−8) = −2).",
    "n = 2 uses Math.sqrt. n = 3 uses Math.cbrt, returning an implementation-approximated binary64 result (including negatives). Other n use a^(1/n) for a ≥ 0, or −(|a|)^(1/n) for odd n and a < 0.",
    "The Square Root calculator is a different contract: √(x<0) returns the principal imaginary. This page rejects that case as NOT_REAL."
  ],
  "limitations": [
    "n must be a positive safe integer → INVALID_INDEX",
    "Even roots of a < 0 → NOT_REAL (unlike square-root imaginary)",
    "Missing a → MISSING_REQUIRED_INPUT"
  ],
  "boundary_conditions": [
    "Missing a returns MISSING_REQUIRED_INPUT. Missing n defaults to 2.",
    "Non-numeric, object, array, boolean, NaN, or Infinity inputs return INVALID_NUMBER.",
    "n that is not a positive safe integer (including n = 0, n < 0, non-integers such as 2.5, and n outside JavaScript's safe-integer range) returns INVALID_INDEX.",
    "a < 0 with even n returns NOT_REAL.",
    "a = 0 returns 0.",
    "Defensive guards exist for unexpected non-finite numerical outcomes (RESULT_OVERFLOW / RESULT_UNDERFLOW). Overflow or underflow is not expected for valid finite nth-root inputs."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Logarithm, Exponential, Powers",
      "url": "https://dlmf.nist.gov/4",
      "supports": "nth root as the principal real value of a^(1/n) when it exists",
      "kind": "reference"
    },
    {
      "title": "NIST DLMF §4.2(iv)",
      "section": "Powers: principal value z^a = exp(a ln z)",
      "url": "https://dlmf.nist.gov/4.2",
      "supports": "Principal a^(1/n) for a > 0. Negative a is restricted here to odd integer n so the result stays the real odd root, not the complex principal power.",
      "kind": "reference",
      "publisher": "National Institute of Standards and Technology"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Real nth root; even roots of negatives are NOT_REAL; n is a positive safe integer",
      "supports": "Distinct from the Square Root calculator’s principal-imaginary contract for x < 0. Polynomial roots belong on Quadratic. Non-integer or non-safe-integer n is a generalized power (Exponent), not this nth-root contract. Negative odd roots use −(−a)^(1/n).",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:7faeb383ad7c423d84a64781f249bee383d3304f8f97e3f173f7801b0286e088",
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 24,
      "total": 24,
      "golden": 10,
      "boundary": 14,
      "property": 0
    },
    "contract_checks": {
      "passed": 5,
      "total": 5
    }
  },
  "evidence_core_generated_at": "2026-10-14T02:50:33.742Z",
  "rendered_at": "2026-10-26T05:36:26.053Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.5",
    "artifacts": {
      "engine": "1.0.5",
      "page": "1.0.5",
      "capability": "1.0.5",
      "evidence": "1.0.5",
      "input_schema": "1.0.5",
      "output_schema": "1.0.5",
      "mcp_contract": "1.0.5"
    },
    "digests": {
      "input_schema_sha256": "d0ef74fe6f7704d12f423072babe01e3271217e5bcd4efcca488f5a5cce6a060",
      "output_schema_sha256": "926b0e5761c82a91c0fea6146365eeacd6097d2ded3d7162df787ec7cd73c31a",
      "evidence_sha256": "4187cef199bbfe2054e907ad15e3df8ce1466bdc3e48f4687df658119f06f07c",
      "evidence_core_sha256": "4187cef199bbfe2054e907ad15e3df8ce1466bdc3e48f4687df658119f06f07c",
      "capability_sha256": "d9b5a9cb29b82288d2806d6b8ffc7cb3afbe95963ef8d58dadc803113e6df7fd",
      "engine_sha256": "5d2475c3b8086d5324c61d483617b14c38fc6a7b2d7cb13708dc521d99812191",
      "mcp_contract_sha256": "4f044efe4e9e7990515b1c3c62a1926a15f84e34ac767eef8e9040cf03addf77"
    },
    "contract_checks": {
      "total": 5,
      "passed": 5,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.5"
        },
        {
          "id": "schema-output-required-declared",
          "status": "pass"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "rest-success-payload-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  },
  "tests": [],
  "disclosure": {
    "policy": "calculatorx-public-evidence-v1",
    "full_validation": "private",
    "representation": "summary"
  }
}
