{
  "capability_id": "math.numerical.derivative",
  "tool_id": "numerical-derivative",
  "engine": "numerical-derivative",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-19T02:14:29.321Z",
  "engine_build": "2026-09-18",
  "test_count": 9,
  "passed": 9,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 2,
      "passed": 2
    },
    "boundary": {
      "total": 2,
      "passed": 2
    },
    "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/numerical-derivative",
  "api": "https://www.calculatorx.com/api/v1/calc/numerical-derivative",
  "schema_input": "https://www.calculatorx.com/schemas/math.numerical.derivative.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.numerical.derivative.output.json",
  "assumptions": [
    "Not symbolic CAS d/dx",
    "Polynomial degree ≤ 8"
  ],
  "limitations": [
    "Not symbolic / CAS d/dx",
    "h ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "Polynomial degree ≤ 8",
    "Not a Statistics calculator"
  ],
  "boundary_conditions": [
    "h ≤ 0 → VALUE_MUST_BE_POSITIVE",
    "h > 1 → VALUE_OUT_OF_RANGE",
    "unknown method (including autodiff) → INVALID_MODE"
  ],
  "sources": [
    "ISO 80000-2:2019 Quantities and units — Mathematics"
  ],
  "methods": [],
  "fingerprint": "sha256:b978c1d5ceec96713a59947f3df87d26fd9bae04073133a3b817bea0b79805e8",
  "tests": [
    {
      "id": "golden-x2",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "central",
        "integrand": "poly",
        "coeffs": [
          0,
          0,
          1
        ],
        "x": 3
      },
      "expect": {
        "exact": 6
      },
      "expectWarning": null,
      "actual": {
        "method": "central",
        "integrand": "poly",
        "x": 3,
        "h": 0.000001,
        "value": 6.00000000084,
        "exact": 6,
        "abs_err": 8.38667801872e-10,
        "formula": "(f(x+h) − f(x−h)) / (2h)"
      },
      "tol": 1e-12
    },
    {
      "id": "golden-sin0",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "method": "central",
        "integrand": "sin",
        "x": 0
      },
      "expect": {
        "exact": 1
      },
      "expectWarning": null,
      "actual": {
        "method": "central",
        "integrand": "sin",
        "x": 0,
        "h": 0.000001,
        "value": 1,
        "exact": 1,
        "abs_err": -1.66644475996e-13,
        "formula": "(f(x+h) − f(x−h)) / (2h)"
      },
      "tol": 1e-12
    },
    {
      "id": "boundary-h-zero",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "central",
        "integrand": "poly",
        "coeffs": "0,1",
        "x": 1,
        "h": 0
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "h must be positive."
    },
    {
      "id": "boundary-autodiff",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "method": "autodiff",
        "integrand": "sin",
        "x": 0
      },
      "expectError": "INVALID_MODE",
      "code": "INVALID_MODE",
      "error": "method must be central, forward, or backward."
    },
    {
      "id": "property-d-x2",
      "ok": true,
      "kind": "property",
      "detail": "d(x²)/dx at 3",
      "expect": 6,
      "actual": 6
    },
    {
      "id": "property-d-x2-fd",
      "ok": true,
      "kind": "property",
      "detail": "central x² ≈ 6",
      "expect": 6,
      "actual": 6.00000000084
    },
    {
      "id": "property-d-x",
      "ok": true,
      "kind": "property",
      "detail": "d(x)/dx",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-d-sin",
      "ok": true,
      "kind": "property",
      "detail": "cos 0",
      "expect": 1,
      "actual": 1
    },
    {
      "id": "property-d-exp",
      "ok": true,
      "kind": "property",
      "detail": "e⁰",
      "expect": 1,
      "actual": 1
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 9,
      "total": 9,
      "golden": 2,
      "boundary": 2,
      "property": 5
    },
    "contract_checks": {
      "passed": 2,
      "total": 2
    }
  },
  "evidence_core_generated_at": "2026-09-18T23:55:25.063Z",
  "rendered_at": "2026-09-19T02:14:29.321Z",
  "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": "d747aec9812543914802bd3f28bc61246c08467fc957cb1df8e7a3547e838e1e",
      "output_schema_sha256": "c8790e94c3fc780840d7e5f1345ebe8804e3b6d583739858825872d1a8049acf",
      "evidence_sha256": "71b5343f551a7266a4f8486ed1fe03d4bab2e0e1eaa40ee3f60ef96a12998207",
      "evidence_core_sha256": "71b5343f551a7266a4f8486ed1fe03d4bab2e0e1eaa40ee3f60ef96a12998207",
      "capability_sha256": "50e6627bf29417a7b5d0662a461b3a96c19da1d38c0534c5053bf16b4957b6bf",
      "engine_sha256": "e2db0a7325e87d733eee5491a146d870677fe7b2ccb5d15ba36a8b5afbb17247",
      "mcp_contract_sha256": "312c860acede70764ad49c5e6180292fe8086ed8874884b9239465a80766d858"
    },
    "contract_checks": {
      "total": 2,
      "passed": 2,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.0"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
