{
  "schemaVersion": 1,
  "slug": "acceleration-calculator",
  "category": "conversion",
  "kind": "implementation",
  "independentValidation": false,
  "implementationHash": "84f01fd8a35e1baa14383015bac09b318152c3aba723bc1ce926c807245db54f",
  "provenance": "Generated from the calculation contract used by the published page. Publication is not external validation.",
  "sourceFiles": [
    "data/calculators/acceleration-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": "a₂ = a₁ × f₁ ÷ f₂",
    "vars": [
      [
        "a₂",
        "converted acceleration"
      ],
      [
        "a₁",
        "input value"
      ],
      [
        "f₁",
        "factor of the source unit"
      ],
      [
        "f₂",
        "factor of the target unit"
      ]
    ],
    "note": "Factors into m/s²: 1 (m/s²), 9.80665 (g), 0.3048 (ft/s²), 0.01 (Gal), 0.44704 (mph/s)."
  },
  "externalEvidence": {
    "reviewedAt": "2026-10-04",
    "sources": [
      {
        "name": "NIST SP 811 — Conversion factors by quantity",
        "url": "https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9"
      }
    ],
    "basis": "Convert acceleration via metres per second squared; standard gravity = 9.80665 m/s².",
    "limitations": "Only the displayed unit definitions are converted; rounding and measurement uncertainty are separate.",
    "implementationHash": "84f01fd8a35e1baa14383015bac09b318152c3aba723bc1ce926c807245db54f",
    "domain": "conversion"
  },
  "contract": {
    "compute": "const units={\"ms2\":\"m/s²\",\"g\":\"g\",\"fts2\":\"ft/s²\",\"gal\":\"Gal\",\"mphs\":\"mph/s\"}, factors={\"ms2\":1,\"g\":9.80665,\"fts2\":0.3048,\"gal\":0.01,\"mphs\":0.44704}; if(!Number.isFinite(value)||value<-1000000000000||value>1000000000000||!Object.prototype.hasOwnProperty.call(units,from)||!Object.prototype.hasOwnProperty.call(units,to))return {\"result\":null,\"ms2\":null,\"g\":null,\"fts2\":null,\"__error\":\"inputError\"}; const out=(function(){const F={ms2:1,g:9.80665,fts2:0.3048,gal:0.01,mphs:0.44704}; const ms2=value*F[from]; return { result: ms2/F[to], ms2, g: ms2/9.80665, fts2: ms2/0.3048 };})(); if(out.__error)return {...{\"result\":null,\"ms2\":null,\"g\":null,\"fts2\":null},...out}; out.__resultUnit=units[to]; out.__unitRatio=factors[to]/factors[from]; return out;",
    "inputs": [
      {
        "name": "value",
        "type": "number",
        "default": 1,
        "min": -1000000000000,
        "max": 1000000000000,
        "step": 0.0001,
        "requiredValue": true,
        "strictRange": true
      },
      {
        "name": "from",
        "type": "select",
        "default": "g",
        "options": [
          {
            "value": "g"
          },
          {
            "value": "ms2"
          },
          {
            "value": "fts2"
          },
          {
            "value": "gal"
          },
          {
            "value": "mphs"
          }
        ]
      },
      {
        "name": "to",
        "type": "select",
        "default": "ms2",
        "options": [
          {
            "value": "ms2"
          },
          {
            "value": "g"
          },
          {
            "value": "fts2"
          },
          {
            "value": "gal"
          },
          {
            "value": "mphs"
          }
        ]
      },
      {
        "name": "precision",
        "type": "select",
        "default": 4,
        "options": [
          {
            "value": 0
          },
          {
            "value": 2
          },
          {
            "value": 4
          },
          {
            "value": 6
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "result",
        "precision": 4,
        "unit": "",
        "precisionField": "precision",
        "unitField": "__resultUnit",
        "trimTrailingZeros": true,
        "notation": "auto"
      },
      {
        "name": "ms2",
        "precision": 4,
        "unit": "m/s²",
        "showWhen": {
          "to": [
            "g",
            "fts2",
            "gal",
            "mphs"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "g",
        "precision": 4,
        "unit": "g",
        "showWhen": {
          "to": [
            "ms2",
            "fts2",
            "gal",
            "mphs"
          ]
        },
        "notation": "auto"
      },
      {
        "name": "fts2",
        "precision": 4,
        "unit": "ft/s²",
        "showWhen": {
          "to": [
            "ms2",
            "g",
            "gal",
            "mphs"
          ]
        },
        "notation": "auto"
      }
    ],
    "interpret": null
  }
}
