---
title: "The Hypergeometric Function"
canonical: "https://docs.magma-maths.org/v2.30-1/BasicRings/RealAndComplexFields/hypergeometric.html"
source: "https://docs.magma-maths.org/v2.30-1/BasicRings/RealAndComplexFields/hypergeometric.md"
part: "Basic Rings"
chapter: "Real and Complex Fields"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Basic Rings", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/index-basic-rings.md"}
  - {"title": "Real and Complex Fields", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/RealAndComplexFields/index-real-and-complex-fields.md"}
prev: {"title": "Gamma, Bessel, and Associated Functions", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/RealAndComplexFields/gamma-bessel.md"}
next: {"title": "Other Special Functions", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/RealAndComplexFields/special.md"}
intrinsics:
  - {"name": "HypergeometricSeries", "signature": "HypergeometricSeries(a, b, c, z): RngElt, RngElt, RngElt, RngElt -> RngElt"}
  - {"name": "HypergeometricU", "signature": "HypergeometricU(a, b, s): FldReElt, FldReElt, FldReElt -> FldReElt"}
---

# The Hypergeometric Function

For more information on the Hypergeometric Series, see Husemöller [[Hus87](https://docs.magma-maths.org/v2.30-1/references.md#cite-husem87)], page 176.

<a id="function-hypergeometricseries-rngelt-rngelt-rngelt-rngelt"></a>
## `HypergeometricSeries(a, b, c, z): RngElt, RngElt, RngElt, RngElt -> RngElt`

Return the hypergeometric series $F(a,b,c;z)$ defined by

$$
F(a,b,c;z) = \sum_{0\le n} {{(a)_n(b)_n}\over{n!(c)_n} z^n}
$$

where $(a)_n = a (a+1) \cdots (a+n-1)$.

<a id="function-hypergeometricu-fldreelt-fldreelt-fldreelt"></a>
## `HypergeometricU(a, b, s): FldReElt, FldReElt, FldReElt -> FldReElt`

For positive real $s$ and complex arguments $a$ and $b$ this function returns the value of the confluent hypergeometric function $U(a, b, s)$. This can be defined by

$$
U(a, b, s)={1\over\Gamma(a)}\int_{u=0}^\infty e^{-su}u^{a-1}(1+u)^{b-a-1)}du.
$$

Pari is used here.
