{
  "schemaVersion": 1,
  "slug": "waist-hip-ratio-calculator",
  "category": "health",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "bc7d2fca027fdfe979de889a107878680a8763a15b57bde85e0c5258dac25f17",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/waist-hip-ratio-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": "R = W ÷ H",
    "vars": [
      [
        "R",
        "Waist-to-hip ratio"
      ],
      [
        "W",
        "Waist circumference"
      ],
      [
        "H",
        "Hip circumference"
      ]
    ],
    "note": "Both circumferences must use the same unit; this page calculates only W÷H and applies no health-risk thresholds."
  },
  "externalEvidence": null,
  "contract": {
    "compute": "return { ratio: hip>0 ? waist/hip : null };",
    "inputs": [
      {
        "name": "waist",
        "type": "number",
        "default": 85,
        "min": 40,
        "max": 250,
        "step": 0.5,
        "slider": true
      },
      {
        "name": "hip",
        "type": "number",
        "default": 100,
        "min": 40,
        "max": 250,
        "step": 0.5,
        "slider": true
      }
    ],
    "outputs": [
      {
        "name": "ratio",
        "precision": 2,
        "unit": ""
      }
    ],
    "interpret": null
  }
}
