{
  "capability_id": "math.square_root",
  "tool_id": "square-root",
  "engine": "square-root",
  "calculation_version": "1.0.3",
  "generated_at": "2026-09-16T22:03:43.777Z",
  "engine_build": "2026-09-10",
  "test_count": 18,
  "passed": 18,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 11,
      "passed": 11
    },
    "boundary": {
      "total": 7,
      "passed": 7
    },
    "property": {
      "total": 0,
      "passed": 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/square-root",
  "api": "https://www.calculatorx.com/api/v1/calc/square-root",
  "schema_input": "https://www.calculatorx.com/schemas/math.square_root.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.square_root.output.json",
  "assumptions": [
    "Principal branch: nonnegative real root when x ≥ 0.",
    "Unlike Log / Ln, this engine does not reject x < 0. It returns the principal imaginary √|x| i, not a real error.",
    "The other real root for x > 0 is −√x; the other imaginary root for x < 0 is −√|x| i. The published value is the principal one."
  ],
  "limitations": [
    "x ≥ 0 → principal = √x, imag = 0",
    "x < 0 → real = 0, imag = √|x|, principal = null (unlike math.root NOT_REAL)",
    "Missing x → MISSING_REQUIRED_INPUT"
  ],
  "boundary_conditions": [
    "Missing x returns MISSING_REQUIRED_INPUT.",
    "Non-numeric, object, array, boolean, NaN, or Infinity inputs return INVALID_NUMBER.",
    "√0 = 0.",
    "x < 0 → imag = √(−x), principal = null (not NaN).",
    "IEEE-754 overflow of √x returns RESULT_OVERFLOW, not Infinity."
  ],
  "sources": [
    {
      "title": "NIST Digital Library of Mathematical Functions, Chapter 4",
      "section": "Logarithm, Exponential, Powers",
      "url": "https://dlmf.nist.gov/4",
      "supports": "Square root as the principal value of x^(1/2)",
      "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 square root is the principal branch of z^(1/2); nonnegative for real x > 0. The branch cut is the negative real axis; this engine reports the principal imaginary on that cut as √|x| i.",
      "kind": "reference"
    },
    {
      "title": "CalculatorX mathematical conventions",
      "section": "Principal real root; principal imaginary for x < 0",
      "supports": "Matches the on-page contract. Cube and nth roots are the Root calculator, not this engine.",
      "kind": "definition"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:01a95214633a22c075abfe506188cc7661a6d663cf51ab4754c55d1807615663",
  "tests": [
    {
      "id": "perfect",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 144
      },
      "expect": {
        "principal": 12,
        "imag": 0
      },
      "expectWarning": null,
      "actual": {
        "real": 12,
        "imag": 0,
        "principal": 12
      },
      "tol": 0
    },
    {
      "id": "eighty-one",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 81
      },
      "expect": {
        "principal": 9
      },
      "expectWarning": null,
      "actual": {
        "real": 9,
        "imag": 0,
        "principal": 9
      },
      "tol": 0
    },
    {
      "id": "two",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 2
      },
      "expect": {
        "principal": 1.4142135623730951
      },
      "expectWarning": null,
      "actual": {
        "real": 1.4142135623730951,
        "imag": 0,
        "principal": 1.4142135623730951
      },
      "tol": 1e-12
    },
    {
      "id": "twenty-seven",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 27
      },
      "expect": {
        "principal": 5.196152422706632
      },
      "expectWarning": null,
      "actual": {
        "real": 5.196152422706632,
        "imag": 0,
        "principal": 5.196152422706632
      },
      "tol": 1e-12
    },
    {
      "id": "zero",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 0
      },
      "expect": {
        "principal": 0,
        "imag": 0
      },
      "expectWarning": null,
      "actual": {
        "real": 0,
        "imag": 0,
        "principal": 0
      },
      "tol": 0
    },
    {
      "id": "quarter",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 0.25
      },
      "expect": {
        "principal": 0.5
      },
      "expectWarning": null,
      "actual": {
        "real": 0.5,
        "imag": 0,
        "principal": 0.5
      },
      "tol": 0
    },
    {
      "id": "hundred",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 100
      },
      "expect": {
        "principal": 10
      },
      "expectWarning": null,
      "actual": {
        "real": 10,
        "imag": 0,
        "principal": 10
      },
      "tol": 0
    },
    {
      "id": "neg",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": -9
      },
      "expect": {
        "imag": 3,
        "real": 0
      },
      "expectWarning": null,
      "actual": {
        "real": 0,
        "imag": 3,
        "principal": null
      },
      "tol": 1e-12
    },
    {
      "id": "neg-one",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": -1
      },
      "expect": {
        "imag": 1,
        "real": 0
      },
      "expectWarning": null,
      "actual": {
        "real": 0,
        "imag": 1,
        "principal": null
      },
      "tol": 0
    },
    {
      "id": "empty-x",
      "ok": true,
      "kind": "boundary",
      "inputs": {},
      "expectError": "MISSING_REQUIRED_INPUT",
      "code": "MISSING_REQUIRED_INPUT",
      "error": "Enter a finite radicand x."
    },
    {
      "id": "tiny",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1e-20
      },
      "expect": {
        "principal": 1e-10
      },
      "expectWarning": null,
      "actual": {
        "real": 1e-10,
        "imag": 0,
        "principal": 1e-10
      },
      "tol": 1e-18
    },
    {
      "id": "large-finite",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x": 1e+308
      },
      "expect": {
        "principal": 1e+154
      },
      "expectWarning": null,
      "actual": {
        "real": 1e+154,
        "imag": 0,
        "principal": 1e+154
      },
      "tol": 0
    },
    {
      "id": "x-object",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": {}
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-array",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": []
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-boolean",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": true
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-infinity",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "Infinity"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-nan",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "NaN"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    },
    {
      "id": "x-abc",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x": "abc"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "Enter a finite number."
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 18,
      "total": 18,
      "golden": 11,
      "boundary": 7,
      "property": 0
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-10T22:48:17.762Z",
  "rendered_at": "2026-09-16T22:03:43.777Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.3",
    "artifacts": {
      "engine": "1.0.3",
      "page": "1.0.3",
      "capability": "1.0.3",
      "evidence": "1.0.3",
      "input_schema": "1.0.3",
      "output_schema": "1.0.3",
      "mcp_contract": "1.0.3"
    },
    "digests": {
      "input_schema_sha256": "ff1cf6b2f9ee1b970abddef0da1ea9f8523f33da2149c3b96c0f0cd1ca3b6aec",
      "output_schema_sha256": "5d98f7f033a8be30482d03b3180c7f013da86b33a56a0b85893efef90e0bee63",
      "evidence_sha256": "ce00cdd5e4eedc35bfd5c923482a49f88162433c1d031808837f3e4431f5c509",
      "evidence_core_sha256": "ce00cdd5e4eedc35bfd5c923482a49f88162433c1d031808837f3e4431f5c509",
      "capability_sha256": "ef80a3f739e7c8e24a11208e2b85177f1037c86a8a9c8e196c1dea5ca6f90c8c",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 3,
      "passed": 3,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.3"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
