{
  "capability_id": "math.numerical.definite_integral",
  "tool_id": "definite-integral",
  "engine": "definite-integral",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:38:08.876Z",
  "engine_build": "2026-09-16",
  "test_count": 9,
  "passed": 9,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 1,
      "passed": 1
    },
    "property": {
      "total": 5,
      "passed": 5
    }
  },
  "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/definite-integral",
  "api": "https://www.calculatorx.com/api/v1/calc/definite-integral",
  "schema_input": "https://www.calculatorx.com/schemas/math.numerical.definite_integral.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.numerical.definite_integral.output.json",
  "assumptions": [
    "Not indefinite CAS",
    "Polynomial degree ≤ 8"
  ],
  "limitations": [
    "Not indefinite / symbolic CAS integrate",
    "n panels 2–10000; Simpson n forced even",
    "Polynomial degree ≤ 8"
  ],
  "boundary_conditions": [
    "n not in 2–10000 → INVALID_INPUT",
    "unknown method (including romberg) → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:030ad6fbbf0e15be953ac684fc6b9a14275aa462ffec14916af0e1ce95a30258",
  "tests": [
    {
      "id": "golden-x-dx",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "simpson",
        "integrand": "poly",
        "coeffs": "0,1",
        "a": 0,
        "b": 1,
        "n": 10
      },
      "expect": {
        "exact": 0.5
      },
      "expectWarning": null,
      "actual": {
        "method": "simpson",
        "integrand": "poly",
        "a": 0,
        "b": 1,
        "n": 10,
        "value": 0.5,
        "exact": 0.5,
        "abs_err": 0,
        "formula": "Simpson 1/3"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-x2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "simpson",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": 0,
        "b": 1,
        "n": 10
      },
      "expect": {
        "exact": 0.3333333333333333,
        "value": 0.3333333333333333
      },
      "expectWarning": null,
      "actual": {
        "method": "simpson",
        "integrand": "poly",
        "a": 0,
        "b": 1,
        "n": 10,
        "value": 0.333333333333,
        "exact": 0.333333333333,
        "abs_err": 0,
        "formula": "Simpson 1/3"
      },
      "tol": 1e-9
    },
    {
      "id": "golden-sin-pi",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "simpson",
        "integrand": "sin",
        "a": 0,
        "b": 3.141592653589793,
        "n": 200
      },
      "expect": {
        "exact": 2
      },
      "expectWarning": null,
      "actual": {
        "method": "simpson",
        "integrand": "sin",
        "a": 0,
        "b": 3.141592653589793,
        "n": 200,
        "value": 2.00000000068,
        "exact": 2,
        "abs_err": 6.76473099759e-10,
        "formula": "Simpson 1/3"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-romberg",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "romberg",
        "integrand": "sin",
        "a": 0,
        "b": 1
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "method must be simpson or trapezoid."
    },
    {
      "id": "property-int-x",
      "ok": true,
      "kind": "property",
      "detail": "∫x",
      "expect": 0.5,
      "actual": 0.5
    },
    {
      "id": "property-int-x2",
      "ok": true,
      "kind": "property",
      "detail": "∫x² Simpson",
      "expect": 0.3333333333333333,
      "actual": 0.333333333333
    },
    {
      "id": "property-int-sin",
      "ok": true,
      "kind": "property",
      "detail": "∫sin",
      "expect": 2,
      "actual": 2
    },
    {
      "id": "property-int-exp",
      "ok": true,
      "kind": "property",
      "detail": "∫e^x",
      "expect": 1.718281828459045,
      "actual": 1.71828182846
    },
    {
      "id": "property-int-trap",
      "ok": true,
      "kind": "property",
      "detail": "∫₀² x",
      "expect": 2,
      "actual": 2
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 9,
      "total": 9,
      "golden": 3,
      "boundary": 1,
      "property": 5
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-16T15:14:48.779Z",
  "rendered_at": "2026-09-16T22:38:08.876Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.0",
    "artifacts": {
      "engine": "1.0.0",
      "page": "1.0.0",
      "capability": "1.0.0",
      "evidence": "1.0.0",
      "input_schema": "1.0.0",
      "output_schema": "1.0.0",
      "mcp_contract": "1.0.0"
    },
    "digests": {
      "input_schema_sha256": "eb18b90174a39a6eddf1fcef217d041603b179adb0c6921040af31a6666fb746",
      "output_schema_sha256": "c184e02d2e1be384650183910b8705308dc14d09017efc944e15c938a041eb3d",
      "evidence_sha256": "f8bd8ce7e2c2828f7add480c11d1039349936b1fe95ba542d33767f2a00624c6",
      "evidence_core_sha256": "f8bd8ce7e2c2828f7add480c11d1039349936b1fe95ba542d33767f2a00624c6",
      "capability_sha256": "77aea678f6400ce20bdc90e5e305abc036202606baed2766ecc27431c2e73157",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
