{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $D \\subseteq \\R^n$ and let $f \\colon D \\to \\R^n$ be a [[continuous function|0X3WGX95FE]]; the case $n = 1$ is the most common, and $\\C$ may replace $\\R$.\nA *zero* (or *root*) of $f$ is a point $r \\in D$ with $f(r) = 0$.\nA *root-finding algorithm* is a procedure that takes $f$ and starting data.\nIt produces a [[sequence|04CC6K5VDT]] $(x_k)$ in $D$, or a sequence of nested sets containing a zero.\nIt uses $f$ only through values of $f$ and possibly of its derivatives.\nIt is designed so that $(x_k)$ has a zero of $f$ as its [[limit|05M5SWSZZD]], or so that the sets shrink to a zero.\n\n## Remarks\n\nExample: the iteration $x_{k+1} = x_k - (x_k^2 - 2)/(2x_k)$ from $x_0 = 1$ gives $1, 1.5, 1.41667, 1.414216, \\ldots$, which tends to the zero $\\sqrt{2}$ of $f(x) = x^2 - 2$.\nNon-example: the iteration $x_{k+1} = 2/x_k$ from $x_0 = 1$ oscillates between $1$ and $2$, so it does not tend to a zero of $x^2 - 2$, although $\\sqrt{2}$ is its fixed point.\nAn algorithm is *globally convergent* on a class of functions if it converges from every admissible start, and *locally convergent* if it converges from starts close enough to a zero.\nIts speed is measured by its order of convergence, see [[rate of convergence|YWZQC5E54B]].\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "TR4CNS5PMJ",
    "kind": "definition",
    "msc": [
      "65H05",
      "65H04"
    ],
    "name": "Root-finding algorithm",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Root-finding_algorithm"
      }
    ],
    "tag": "8JYC7S28JX",
    "uses": [
      "0X3WGX95FE",
      "04CC6K5VDT",
      "05M5SWSZZD",
      "YWZQC5E54B"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/8JYC7S28JX/",
  "links": [
    {
      "field": "defines",
      "target": "TR4CNS5PMJ"
    },
    {
      "field": "uses",
      "target": "0X3WGX95FE"
    },
    {
      "field": "uses",
      "target": "04CC6K5VDT"
    },
    {
      "field": "uses",
      "target": "05M5SWSZZD"
    },
    {
      "field": "uses",
      "target": "YWZQC5E54B"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/8JYC7S28JX.md",
  "msc": [
    "65H05",
    "65H04"
  ],
  "name": "Root-finding algorithm",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/8JY/8JYC7S28JX.md",
  "status": null,
  "tag": "8JYC7S28JX",
  "uri": "m2://8JYC7S28JX",
  "url": "https://tamnd.github.io/math2/wiki/root-finding-algorithm-definition/",
  "writing": {
    "tag": "8JYC7S28JX",
    "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
      }
    ]
  }
}
