{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0FDCW77H44"
    }
  ],
  "body": "\n## Definition\n\nFor a real number $s \u003e 0$, the gamma function is\n$$\\Gamma(s) = \\int_0^\\infty t^{s-1} e^{-t} \\, dt.$$\n\n## Remarks\n\nThe [[improper integral|0VCTBJMEJF]] converges at $0$ because $s \u003e 0$, and at $\\infty$ because $e^{-t}$ decays fast. Both claims follow from the [[comparison test|0FR1BDKK10]].\nIntegration by parts gives $\\Gamma(s + 1) = s \\, \\Gamma(s)$. Also $\\Gamma(1) = 1$, so [[$\\Gamma$ extends the factorial|0FDCW77H44]].\nThe function extends to all real numbers except $0, -1, -2, \\dots$, by the recursion. Mathlib defines this extension as `Real.Gamma`.\nThe notation $\\Gamma$ is due to Adrien-Marie Legendre.\n\n## Explanations\n\n### L1 human\n\nThe gamma function is an integral that depends on a parameter $s$.\nAt positive integers it gives factorials, so it interpolates the factorial.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0H5SYBSED9",
    "kind": "definition",
    "msc": [
      "33B15"
    ],
    "name": "Gamma function",
    "sources": [
      {
        "locator": "Main definition",
        "url": "https://en.wikipedia.org/wiki/Gamma_function"
      }
    ],
    "tag": "0V3FZMVB4K",
    "uses": [
      "0VCTBJMEJF",
      "0FR1BDKK10"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0V3FZMVB4K/",
  "links": [
    {
      "field": "defines",
      "target": "0H5SYBSED9"
    },
    {
      "field": "uses",
      "target": "0VCTBJMEJF"
    },
    {
      "field": "uses",
      "target": "0FR1BDKK10"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0V3FZMVB4K.md",
  "msc": [
    "33B15"
  ],
  "name": "Gamma function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0V3/0V3FZMVB4K.md",
  "status": null,
  "tag": "0V3FZMVB4K",
  "uri": "m2://0V3FZMVB4K",
  "url": "https://math2.tamnd.com/wiki/gamma-function-definition/",
  "writing": {
    "tag": "0V3FZMVB4K",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
