{
  "capability_id": "math.numerical.definite_integral",
  "tool_id": "definite-integral",
  "engine": "definite-integral",
  "calculation_version": "1.1.0",
  "generated_at": "2026-09-19T02:14:29.320Z",
  "engine_build": "2026-09-19",
  "test_count": 13,
  "passed": 13,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 5,
      "passed": 5
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "property": {
      "total": 6,
      "passed": 6
    }
  },
  "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",
    "Gauss n is nodes 2–8, not panels"
  ],
  "limitations": [
    "Not indefinite / symbolic CAS integrate",
    "Simpson/trapezoid n panels 2–10000; Simpson n forced even",
    "Gauss–Legendre n nodes 2–8",
    "Polynomial degree ≤ 8"
  ],
  "boundary_conditions": [
    "Simpson/trapezoid n not in 2–10000 → INVALID_INPUT",
    "Gauss n > 8 → VALUE_ABOVE_MAX",
    "unknown method (including romberg) → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:66f15a967f127accc2dcbb7e1f95893afc51db14e3c65844cd0d837faab244e0",
  "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": "golden-gauss-x",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "gauss",
        "integrand": "poly",
        "coeffs": "0,1",
        "a": 0,
        "b": 1,
        "n": 2
      },
      "expect": {
        "exact": 0.5,
        "value": 0.5
      },
      "expectWarning": null,
      "actual": {
        "method": "gauss",
        "integrand": "poly",
        "a": 0,
        "b": 1,
        "n": 2,
        "value": 0.5,
        "exact": 0.5,
        "abs_err": 0,
        "formula": "Gauss–Legendre 2-point"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-gauss-x2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "gauss",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "a": 0,
        "b": 1,
        "n": 2
      },
      "expect": {
        "exact": 0.3333333333333333,
        "value": 0.3333333333333333
      },
      "expectWarning": null,
      "actual": {
        "method": "gauss",
        "integrand": "poly",
        "a": 0,
        "b": 1,
        "n": 2,
        "value": 0.333333333333,
        "exact": 0.333333333333,
        "abs_err": 0,
        "formula": "Gauss–Legendre 2-point"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-gauss-n",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "gauss",
        "integrand": "sin",
        "a": 0,
        "b": 1,
        "n": 9
      },
      "expectError": "VALUE_ABOVE_MAX",
      "code": "VALUE_ABOVE_MAX",
      "error": "n (Gauss–Legendre nodes) must be 2–8."
    },
    {
      "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, trapezoid, or gauss."
    },
    {
      "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
    },
    {
      "id": "property-int-gauss-x2",
      "ok": true,
      "kind": "property",
      "detail": "∫x² Gauss",
      "expect": 0.3333333333333333,
      "actual": 0.333333333333
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 13,
      "total": 13,
      "golden": 5,
      "boundary": 2,
      "property": 6
    },
    "contract_checks": {
      "passed": 4,
      "total": 4
    }
  },
  "evidence_core_generated_at": "2026-09-19T01:35:56.101Z",
  "rendered_at": "2026-09-19T02:14:29.320Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.1.0",
    "artifacts": {
      "engine": "1.1.0",
      "page": "1.1.0",
      "capability": "1.1.0",
      "evidence": "1.1.0",
      "input_schema": "1.1.0",
      "output_schema": "1.1.0",
      "mcp_contract": "1.1.0"
    },
    "digests": {
      "input_schema_sha256": "61855b6a58b7725c9c0a355c4ce3caa90fc53bc7b8dbd4d87c5934308d008821",
      "output_schema_sha256": "1730192812118fe6d77f189cbd938ca9cfb811fd6ee349f8eea1583080a4d040",
      "evidence_sha256": "3549baa8cb6d3d8ab00120d3bdc85c684cb79e4dbd978111a544640c69de8cae",
      "evidence_core_sha256": "3549baa8cb6d3d8ab00120d3bdc85c684cb79e4dbd978111a544640c69de8cae",
      "capability_sha256": "8b57294f8ff21d3827420003b5b1cfbb7d6e4e0e970ecc81ebfe03c1776c0410",
      "engine_sha256": "e2db0a7325e87d733eee5491a146d870677fe7b2ccb5d15ba36a8b5afbb17247",
      "mcp_contract_sha256": "312c860acede70764ad49c5e6180292fe8086ed8874884b9239465a80766d858"
    },
    "contract_checks": {
      "total": 4,
      "passed": 4,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.1.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"
  }
}
