{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $A$ be a real number defined as the [[limit|05M5SWSZZD]] of a [[real sequence|0CTV783HYT]] $(A_n)$, or of a family $A(h)$ as $h \\to 0$.\nAssume that each $A_n$ or $A(h)$ is computable by finitely many arithmetic operations.\nThe *truncation error* of the approximation $A_n$ is $A - A_n$, and that of $A(h)$ is $A - A(h)$.\nHere $A_n$ and $A(h)$ are evaluated in exact arithmetic.\n\n## Remarks\n\nExample: let $f$ have a continuous second derivative and take the forward difference $A(h) = (f(x+h) - f(x))/h$, with limit $A = f'(x)$.\nTaylor's theorem gives $A - A(h) = -\\tfrac12 f''(\\xi) h$ for some $\\xi$ between $x$ and $x + h$, so the truncation error is of order $h$.\nExample: for $A_n = \\sum_{k=0}^{n} 1/k!$ and $A = e$, the truncation error is $\\sum_{k \u003e n} 1/k!$, which lies between $1/(n+1)!$ and $2/(n+1)!$ for $n \\ge 1$.\nNon-example: the difference between $1/3$ and its stored value $0.333$ in three-digit decimal arithmetic is a round-off error, since no limit process is cut off.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "4AKCQERM89",
    "kind": "definition",
    "msc": [
      "65G99",
      "65D25",
      "65L70"
    ],
    "name": "Truncation error",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Truncation_error"
      }
    ],
    "tag": "3KM7HQWKXP",
    "uses": [
      "0CTV783HYT",
      "05M5SWSZZD"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/3KM7HQWKXP/",
  "links": [
    {
      "field": "defines",
      "target": "4AKCQERM89"
    },
    {
      "field": "uses",
      "target": "0CTV783HYT"
    },
    {
      "field": "uses",
      "target": "05M5SWSZZD"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/3KM7HQWKXP.md",
  "msc": [
    "65G99",
    "65D25",
    "65L70"
  ],
  "name": "Truncation error",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/3KM/3KM7HQWKXP.md",
  "status": null,
  "tag": "3KM7HQWKXP",
  "uri": "m2://3KM7HQWKXP",
  "url": "https://tamnd.github.io/math2/wiki/truncation-error-definition/",
  "writing": {
    "tag": "3KM7HQWKXP",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
