{
  "capability_id": "math.exponential_growth",
  "tool_id": "exponential-growth",
  "engine": "exponential-growth",
  "calculation_version": "1.0.7",
  "generated_at": "2026-09-16T22:03:43.783Z",
  "engine_build": "2026-09-10",
  "test_count": 20,
  "passed": 20,
  "failed": 0,
  "tests_summary": {
    "golden": {
      "total": 14,
      "passed": 14
    },
    "boundary": {
      "total": 6,
      "passed": 6
    },
    "property": {
      "total": 0,
      "passed": 0
    }
  },
  "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/exponential-growth",
  "api": "https://www.calculatorx.com/api/v1/calc/exponential-growth",
  "schema_input": "https://www.calculatorx.com/schemas/math.exponential_growth.input.json",
  "schema_output": "https://www.calculatorx.com/schemas/math.exponential_growth.output.json",
  "assumptions": [
    "Constant rate over the interval (real populations often need logistic models long-term).",
    "CalculatorX defines the periodic model domain as r > −100% so the growth factor stays positive and inverse/logarithmic solving remains well-defined."
  ],
  "limitations": [
    "Periodic model requires r > −100% → RATE_MUST_BE_GT_MINUS_100",
    "Non-finite inputs → INVALID_NUMBER"
  ],
  "boundary_conditions": [
    "Need three known values to solve the fourth.",
    "All four values enter verify / consistency mode rather than being rejected.",
    "Grouped inputs such as 1,705.97 are canonicalized to 1705.97.",
    "Displayed x(t) may match while a small Difference remains — that residual is from the unrounded result.",
    "Periodic r ≤ −100% is rejected as outside the model domain (not because 0^t is undefined for every forward case).",
    "x₀ = 0 yields a trivial zero path."
  ],
  "sources": [
    {
      "title": "NIST DLMF §4.2(i) The Logarithm",
      "section": "Principal logarithm ln z",
      "url": "https://dlmf.nist.gov/4.2",
      "supports": "Inverse solving for t; doubling time t₂=ln 2 / ln(1+r/100); half-life via ln(1/2)",
      "kind": "reference",
      "accessed": "2026-08-25"
    },
    {
      "title": "NIST DLMF §4.2(iii) The Exponential Function",
      "section": "exp z and the real exponential",
      "url": "https://dlmf.nist.gov/4.2",
      "supports": "Continuous model x(t)=x₀ e^(kt)",
      "kind": "reference",
      "accessed": "2026-08-25"
    },
    {
      "title": "NIST DLMF §4.2(iv) Powers",
      "section": "Principal value z^a = exp(a ln z)",
      "url": "https://dlmf.nist.gov/4.2",
      "supports": "Periodic model x(t)=x₀(1+r/100)^t as a real power of the positive growth factor 1+r/100",
      "kind": "reference",
      "accessed": "2026-08-25"
    }
  ],
  "methods": [],
  "fingerprint": "sha256:db1f1770a512fc80cc710f57cdb3bb6c1ff47cf809b3c9b304d0a686c2a0e6dc",
  "tests": [
    {
      "id": "pop-90",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 50,
        "ratePct": 4,
        "t": 90
      },
      "expect": 1705.9666670848055,
      "expectWarning": null,
      "actual": 1705.9666670848055,
      "tol": 0.01,
      "tol_type": "absolute"
    },
    {
      "id": "11yr",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 10000,
        "ratePct": 5,
        "t": 11
      },
      "expect": 17103.39358116314,
      "expectWarning": null,
      "actual": 17103.39358116314,
      "tol": 0.05,
      "tol_type": "absolute"
    },
    {
      "id": "solve-t",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 10000,
        "ratePct": 5,
        "xt": 30000
      },
      "expect": 22.51708530541102,
      "expectWarning": null,
      "actual": 22.51708530541102,
      "tol": 1e-12,
      "engine": "exponential-growth-time",
      "tol_type": "absolute"
    },
    {
      "id": "decay-10",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 100,
        "ratePct": -10,
        "t": 10
      },
      "expect": 34.86784401000001,
      "expectWarning": null,
      "actual": 34.86784401000001,
      "tol": 1e-12,
      "tol_type": "absolute"
    },
    {
      "id": "negative-t",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 100,
        "ratePct": 5,
        "t": -10
      },
      "expect": 61.39132535407591,
      "expectWarning": null,
      "actual": 61.39132535407591,
      "tol": 1e-12,
      "tol_type": "absolute"
    },
    {
      "id": "zero-x0",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 0,
        "ratePct": 4,
        "t": 90
      },
      "expect": 0,
      "expectWarning": null,
      "actual": 0,
      "tol": 1e-12,
      "tol_type": "absolute"
    },
    {
      "id": "continuous-k",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 50,
        "ratePct": 0.04,
        "t": 10,
        "model": "continuous"
      },
      "expect": 74.59123488206352,
      "expectWarning": null,
      "actual": 74.59123488206352,
      "tol": 1e-12,
      "tol_type": "absolute"
    },
    {
      "id": "continuous-k-neg",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 50,
        "ratePct": -0.04,
        "t": 10,
        "model": "continuous"
      },
      "expect": 33.51600230178197,
      "expectWarning": null,
      "actual": 33.51600230178197,
      "tol": 1e-12,
      "tol_type": "absolute"
    },
    {
      "id": "double-100pct",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 16,
        "ratePct": 100,
        "t": 1
      },
      "expect": 32,
      "expectWarning": null,
      "actual": 32,
      "tol": 0,
      "tol_type": "absolute"
    },
    {
      "id": "half-life-50pct",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 100,
        "ratePct": -50,
        "xt": 50
      },
      "expect": 1,
      "expectWarning": null,
      "actual": 1,
      "tol": 0,
      "engine": "exponential-growth-time",
      "tol_type": "absolute"
    },
    {
      "id": "solve-x0",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "ratePct": 100,
        "t": 1,
        "xt": 32
      },
      "expect": 16,
      "expectWarning": null,
      "actual": 16,
      "tol": 0,
      "engine": "exponential-growth-x0",
      "tol_type": "absolute"
    },
    {
      "id": "solve-rate",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 16,
        "t": 1,
        "xt": 32
      },
      "expect": 100,
      "expectWarning": null,
      "actual": 100,
      "tol": 0,
      "engine": "exponential-growth-rate",
      "tol_type": "absolute"
    },
    {
      "id": "verify-pop90",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 50,
        "ratePct": 4,
        "t": 90,
        "xt": 1705.97
      },
      "expect": 1705.9666670848055,
      "expectWarning": null,
      "actual": 1705.9666670848055,
      "tol": 0.01,
      "tol_type": "absolute"
    },
    {
      "id": "verify-display-mismatch",
      "ok": true,
      "kind": "golden",
      "inputs": {
        "x0": 50,
        "ratePct": 4,
        "t": 90,
        "xt": 1705.964
      },
      "expect": {
        "value": 1705.9666670848055,
        "consistency": {
          "status": "inconsistent",
          "display_match": false,
          "numeric_close": true
        }
      },
      "expectWarning": null,
      "actual": {
        "value": 1705.9666670848055,
        "consistency": {
          "status": "inconsistent",
          "comparison_basis": "display_quantization",
          "display_decimals": 2,
          "display_calculated": "1,705.97",
          "display_provided": "1,705.96",
          "same_display_value": false,
          "display_match": false,
          "numeric_close": true,
          "half_ulp": 0.005,
          "rounding_rule": "consistent iff formatGrowthAmount(calculated) === formatGrowthAmount(provided) using the same Result Card quantization; half_ulp and relative_error are diagnostics (numeric_close), not acceptance shortcuts",
          "calculated": 1705.9666670848055,
          "provided": 1705.964,
          "absolute_difference": 0.002667084805580089,
          "relative_error": 0.000001563386235522212,
          "relative_error_percent": 0.0001563386235522212
        }
      },
      "tol": 0.01,
      "tol_type": "absolute"
    },
    {
      "id": "r-minus-100",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 100,
        "ratePct": -100,
        "t": 10
      },
      "expectError": "RATE_MUST_BE_GT_MINUS_100",
      "code": "RATE_MUST_BE_GT_MINUS_100",
      "error": "Periodic model requires r > −100% so the growth factor stays positive."
    },
    {
      "id": "r-below-minus-100",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 100,
        "ratePct": -101,
        "t": 5
      },
      "expectError": "RATE_MUST_BE_GT_MINUS_100",
      "code": "RATE_MUST_BE_GT_MINUS_100",
      "error": "Periodic model requires r > −100% so the growth factor stays positive."
    },
    {
      "id": "solve-t-nonpositive",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 0,
        "ratePct": 5,
        "xt": 10
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "x₀ and x(t) must be positive to solve for time.",
      "engine": "exponential-growth-time"
    },
    {
      "id": "solve-t-zero-rate",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 100,
        "ratePct": 0,
        "xt": 50
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Rate must produce a growth factor ≠ 1 to solve for time.",
      "engine": "exponential-growth-time"
    },
    {
      "id": "solve-rate-zero-t",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 16,
        "t": 0,
        "xt": 32
      },
      "expectError": "INVALID_INPUT",
      "code": "INVALID_INPUT",
      "error": "Need nonzero x₀ and t to solve for rate.",
      "engine": "exponential-growth-rate"
    },
    {
      "id": "boundary-eg-rate",
      "ok": true,
      "kind": "boundary",
      "inputs": {
        "x0": 100,
        "ratePct": -100,
        "t": 1
      },
      "expectError": "RATE_MUST_BE_GT_MINUS_100",
      "code": "RATE_MUST_BE_GT_MINUS_100",
      "error": "Periodic model requires r > −100% so the growth factor stays positive."
    }
  ],
  "tier": "engine_tested",
  "verification": {
    "tests": {
      "passed": 20,
      "total": 20,
      "golden": 14,
      "boundary": 6,
      "property": 0
    },
    "contract_checks": {
      "passed": 27,
      "total": 27
    }
  },
  "evidence_core_generated_at": "2026-09-10T22:48:17.762Z",
  "rendered_at": "2026-09-16T22:03:43.783Z",
  "release_integrity": {
    "status": "verified",
    "scope": "workspace",
    "production_attestation_required": true,
    "calculation_version": "1.0.7",
    "artifacts": {
      "engine": "1.0.7",
      "page": "1.0.7",
      "capability": "1.0.7",
      "evidence": "1.0.7",
      "input_schema": "1.0.7",
      "output_schema": "1.0.7",
      "mcp_contract": "1.0.7"
    },
    "digests": {
      "input_schema_sha256": "e17eaac04aa18c70f8036d533840884fb246b830e44fed4f23a1c3220871de2f",
      "output_schema_sha256": "8ada2568a635f6d90dadd0b29de56555ba0063983c2886847b1959f3957c80bd",
      "evidence_sha256": "fd4a8afd16007d0c0e68d0f29d585b0d5bee33704c2b0f5c5f48ef4c62c46d10",
      "evidence_core_sha256": "fd4a8afd16007d0c0e68d0f29d585b0d5bee33704c2b0f5c5f48ef4c62c46d10",
      "capability_sha256": "06474e37c93d561f98c65e57fbb5eff0b7641b41f0666f12f9dfa00689478977",
      "engine_sha256": "c8d4ccdbfeaf61d7b024d4e1babb0c2ba3b324c1b37bd0cb456a526d8d2b1bd1",
      "mcp_contract_sha256": "863098b311a7b17dc4b229a6302b90b3545b175f716e5d84772c7be8e9716b86"
    },
    "contract_checks": {
      "total": 27,
      "passed": 27,
      "failed": 0,
      "items": [
        {
          "id": "release-artifacts-aligned",
          "status": "pass",
          "detail": "1.0.7"
        },
        {
          "id": "schema-valid-input-executes",
          "status": "pass"
        },
        {
          "id": "engine-success-output-validates-schema",
          "status": "pass"
        },
        {
          "id": "schema-rejects-incomplete-input",
          "status": "pass"
        },
        {
          "id": "input-schema-declares-xt",
          "status": "pass"
        },
        {
          "id": "input-schema-accepts-inverse-time",
          "status": "pass",
          "detail": "[]"
        },
        {
          "id": "input-schema-accepts-verify",
          "status": "pass",
          "detail": "[]"
        },
        {
          "id": "input-schema-rejects-two-fields",
          "status": "pass"
        },
        {
          "id": "output-schema-defines-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-forward",
          "status": "pass"
        },
        {
          "id": "rest-forward-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-forward-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-forward-continuous",
          "status": "pass"
        },
        {
          "id": "rest-forward-continuous-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-forward-continuous-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-inverse-time",
          "status": "pass"
        },
        {
          "id": "rest-inverse-time-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-inverse-time-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-inverse-x0",
          "status": "pass"
        },
        {
          "id": "rest-inverse-x0-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-inverse-x0-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-inverse-rate",
          "status": "pass"
        },
        {
          "id": "rest-inverse-rate-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-inverse-rate-consistency",
          "status": "pass"
        },
        {
          "id": "input-schema-verify",
          "status": "pass"
        },
        {
          "id": "rest-verify-output-schema",
          "status": "pass"
        },
        {
          "id": "rest-verify-consistency",
          "status": "pass"
        }
      ]
    },
    "report": "https://www.calculatorx.com/.well-known/calculatorx-release-integrity.json"
  }
}
