{
  "schemaVersion": 1,
  "slug": "tv-mounting-height-calculator",
  "category": "household",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "03abcd5c1aba3fdf2d99b88bf7083c1377a6561526ae57d3148df71a8e0f55e8",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/tv-mounting-height-calculator.json",
    "src/engine.js"
  ],
  "runtimeSource": "/sources/engine.txt",
  "runtimeHash": "5c888d8898afbdee36267bb9977829e1e2ac568f6677c8ee87469c139864645c",
  "scope": "The compute function records implemented equations, constants, lookup tables and custom rules. Inputs record defaults and allowed values; outputs record precision and units. Defaults are examples, not recommendations. General background references are not evidence for this specific algorithm.",
  "publishedFormula": {
    "formula": "h = 9S÷√337; C = E−0.08h; B = C−h÷2; X = B−H_s",
    "vars": [
      [
        "S",
        "TV diagonal (in)"
      ],
      [
        "h",
        "Screen height (in)"
      ],
      [
        "E",
        "Eye level from floor (in)"
      ],
      [
        "H_s",
        "Stand height (in)"
      ],
      [
        "C",
        "Mount centre height (in)"
      ],
      [
        "B",
        "Mount bottom height (in)"
      ]
    ],
    "note": "Assumes a fixed 16:9 screen and places its center 8% of screen height below seated eye level; a starting heuristic, not a universal ergonomic rule."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "const h = screenSize*9/Math.sqrt(337); const center = eyeLevel-h*0.08; const bottom = center-h/2; return { screenHeight: h, mountCenter: center, mountBottom: bottom, clearance: bottom-standHeight };",
    "inputs": [
      {
        "name": "screenSize",
        "type": "number",
        "default": 55,
        "min": 10,
        "max": 120,
        "step": 1,
        "slider": true
      },
      {
        "name": "eyeLevel",
        "type": "number",
        "default": 42,
        "min": 24,
        "max": 60,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "standHeight",
        "type": "number",
        "default": 24,
        "min": 0,
        "max": 60,
        "step": 1,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "screenHeight",
        "precision": 1,
        "unit": "in"
      },
      {
        "name": "mountCenter",
        "precision": 1,
        "unit": "in"
      },
      {
        "name": "mountBottom",
        "precision": 1,
        "unit": "in"
      },
      {
        "name": "clearance",
        "precision": 1,
        "unit": "in"
      }
    ],
    "interpret": null
  }
}
