{
  "capability_id": "electrical.lpf",
  "tool_id": "lpf",
  "engine": "lpf",
  "calculation_version": "1.0.0",
  "generated_at": "2026-09-16T22:03:43.716Z",
  "engine_build": "2026-09-10",
  "test_count": 10,
  "passed": 10,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 3,
      "passed": 3
    },
    "boundary": {
      "total": 3,
      "passed": 3
    },
    "property": {
      "total": 4,
      "passed": 4
    }
  },
  "engine_tested": true,
  "expert_reviewed": true,
  "internally_reviewed": false,
  "review_kind": "expert",
  "source_checked": true,
  "reviewed_by": "CalculatorX electrical review",
  "reviewer_role": "electrical-engineer",
  "last_reviewed": "2026-08-08",
  "expert_review": {
    "status": "approved",
    "reviewer": {
      "name": "CalculatorX electrical review",
      "role": "electrical-engineer"
    },
    "reviewed_at": "2026-08-08",
    "scope": [
      "formula",
      "input semantics",
      "assumptions",
      "limitations",
      "sources",
      "tests"
    ],
    "kind": "expert"
  },
  "internal_review": {
    "status": "not_applicable",
    "reviewer": null
  },
  "page": "https://www.calculatorx.com/calc/electric/lpf",
  "api": "https://www.calculatorx.com/api/v1/calc/lpf",
  "schema_input": "https://www.calculatorx.com/schemas/electrical.lpf.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/electrical.lpf.output.json",
  "assumptions": [
    "Ideal lumped series-R / shunt-C LPF.",
    "When R and C are both given, fc is recomputed from them."
  ],
  "limitations": [
    "First-order passive RC LPF only",
    "Fewer than two of R/C/fc → NEEDS_TWO_INPUTS",
    "When R and C both provided, fc is recomputed"
  ],
  "boundary_conditions": [
    "Fewer than two of R/C/fc → NEEDS_TWO_INPUTS",
    "≤ 0 → VALUE_MUST_BE_POSITIVE",
    "Non-finite → INVALID_NUMBER"
  ],
  "sources": [
    {
      "title": "Horowitz & Hill — The Art of Electronics",
      "section": "Single-pole RC filters",
      "supports": "fc = 1/(2πRC); −3 dB at corner; −20 dB/decade",
      "kind": "reference"
    },
    {
      "title": "IEC 60050 — IEV",
      "section": "Cut-off frequency",
      "supports": "Definition of cutoff / corner frequency for filters",
      "kind": "standard"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:ea861dc7b537c417718182fdd4aa315b2e06af83b487639bbebdde4f000ef54d",
  "tests": [
    {
      "id": "rc-fc",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "R": 10000,
        "C": 0.000001
      },
      "expect": {
        "fc": 15.915494309189533,
        "tau": 0.01
      },
      "expectWarning": null,
      "actual": {
        "R": 10000,
        "C": 0.000001,
        "fc": 15.915494309189533,
        "tau": 0.01,
        "omega_c": 100
      },
      "tol": 1e-9
    },
    {
      "id": "mag-at-fc",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "R": 10000,
        "C": 0.000001,
        "f": 15.915494309189533
      },
      "expect": {
        "H_dB": -3.0102999566398125
      },
      "expectWarning": null,
      "actual": {
        "R": 10000,
        "C": 0.000001,
        "fc": 15.915494309189533,
        "tau": 0.01,
        "omega_c": 100,
        "f": 15.915494309189533,
        "H_lin": 0.7071067811865475,
        "H_dB": -3.0102999566398125
      },
      "tol": 1e-9
    },
    {
      "id": "solve-C",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "R": 4700,
        "fc": 1000
      },
      "expect": {
        "C": 3.386275384933943e-8
      },
      "expectWarning": null,
      "actual": {
        "R": 4700,
        "C": 3.386275384933943e-8,
        "fc": 1000,
        "tau": 0.00015915494309189532,
        "omega_c": 6283.185307179586
      },
      "tol": 1e-15
    },
    {
      "id": "needs-two",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "R": 1000
      },
      "expectError": "NEEDS_TWO_INPUTS",
      "code": "NEEDS_TWO_INPUTS",
      "error": "LPF needs any two of R, C, fc"
    },
    {
      "id": "zero-R",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "R": 0,
        "C": 0.000001
      },
      "expectError": "VALUE_MUST_BE_POSITIVE",
      "code": "VALUE_MUST_BE_POSITIVE",
      "error": "R must be greater than zero"
    },
    {
      "id": "nan-C",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "R": 1000,
        "C": "n/a"
      },
      "expectError": "INVALID_NUMBER",
      "code": "INVALID_NUMBER",
      "error": "C must be a finite number"
    },
    {
      "id": "property-fc",
      "ok": true,
      "kind": "property",
      "detail": "fc from RC",
      "expect": 15.915494309189533,
      "actual": 15.915494309189533
    },
    {
      "id": "property-3db",
      "ok": true,
      "kind": "property",
      "detail": "−3 dB at fc",
      "expect": -3.0102999566398125,
      "actual": -3.0102999566398125
    },
    {
      "id": "property-solve-C",
      "ok": true,
      "kind": "property",
      "detail": "C from R,fc",
      "expect": 3.386275384933943e-8,
      "actual": 3.386275384933943e-8
    },
    {
      "id": "property-half-fc",
      "ok": true,
      "kind": "property",
      "detail": "2R → ½fc",
      "expect": 7.957747154594767,
      "actual": 7.957747154594767
    }
  ],
  "tier": "expert_verified",
  "verification": {
    "tests": {
      "passed": 10,
      "total": 10,
      "golden": 3,
      "boundary": 3,
      "property": 4
    },
    "contract_checks": {
      "passed": 3,
      "total": 3
    }
  },
  "evidence_core_generated_at": "2026-09-05T02:35:39.217Z",
  "rendered_at": "2026-09-16T22:03:43.716Z",
  "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": "3ea9dcf4d535ac29b41a21e58a64dbc11f409315913a92db011a8e8d109600e1",
      "output_schema_sha256": "f5197a7821076ed820bfe25c3093c4d8c1a326cca1b61b661761d67d4b6c570c",
      "evidence_sha256": "78966976955aadaa6bbc17bc54b92904c0d9989c90f9cf6bb6ed545f95cd1e5f",
      "evidence_core_sha256": "78966976955aadaa6bbc17bc54b92904c0d9989c90f9cf6bb6ed545f95cd1e5f",
      "capability_sha256": "24c99c94be293938c216207d7558b8898ed074f087077656d8e50f3ad950d30c",
      "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.0"
        },
        {
          "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"
  }
}
