{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $a \u003c b$ and let $f \\colon [a, b] \\to \\mathbb{R}$ be continuous.\nThen for every $\\varepsilon \u003e 0$ there is a polynomial $p$ with $|f(x) - p(x)| \u003c \\varepsilon$ for all $x \\in [a, b]$.\n\n## Remarks\n\nEquivalently, there is a sequence of polynomials that converges [[uniformly|08FPABDQ4C]] to $f$ on $[a, b]$.\nOne proof uses the [[Bernstein polynomials|0C4VWBFY73]] on $[0, 1]$, together with [[uniform continuity|0W0TZDRF9C]] of $f$.\nThe Stone–Weierstrass theorem generalizes the result to compact spaces. Mathlib states the theorem as `polynomialFunctions_closure_eq_top`.\n\n## History\n\nKarl Weierstrass proved the theorem in 1885.\n\n## Explanations\n\n### L1 human\n\nEvery continuous function on a closed bounded interval is uniformly close to a polynomial.\nSo polynomials can imitate any continuous graph as closely as we like.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "kind": "statement",
    "msc": [
      "41A10"
    ],
    "name": "Weierstrass approximation theorem",
    "role": "theorem",
    "sources": [
      {
        "locator": "Weierstrass approximation theorem",
        "url": "https://en.wikipedia.org/wiki/Stone%E2%80%93Weierstrass_theorem"
      }
    ],
    "tag": "0JQE130DHW",
    "uses": [
      "0C4VWBFY73",
      "0W0TZDRF9C",
      "08FPABDQ4C"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0JQE130DHW/",
  "links": [
    {
      "field": "uses",
      "target": "0C4VWBFY73"
    },
    {
      "field": "uses",
      "target": "0W0TZDRF9C"
    },
    {
      "field": "uses",
      "target": "08FPABDQ4C"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0JQE130DHW.md",
  "msc": [
    "41A10"
  ],
  "name": "Weierstrass approximation theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0JQ/0JQE130DHW.md",
  "status": null,
  "tag": "0JQE130DHW",
  "uri": "m2://0JQE130DHW",
  "url": "https://math2.tamnd.com/wiki/weierstrass-approximation-theorem/",
  "writing": {
    "tag": "0JQE130DHW",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
