BarnesG
The Barnes G-function , the double-gamma function satisfying with — so , the superfactorial, at positive integers.
Barnes G-functionMathWorldBarnesG-FunctionWikidataQ808463DLMF5.17.E1FungrimBarnesG✓Fungrim entryWolfram LanguageBarnesG!BarnesG(z)the Barnes G-function .barnesg(z)Juliaenumeratio_ball(barnes_g, z)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | infinity) -> number | analyticreplaces compute-engine | always |
(complex | infinity) -> number | compute-engine | always |
Details
The Barnes G-function is the double gamma function: it satisfies with (DLMF 5.17.1), one level up from , and carries the Weierstrass-type product (DLMF 5.17.3) that entire functions are built from.
- Functional equation , the analogue of one level up; see Gamma.
- At positive integers — the superfactorial: , , , , . Exact and arbitrarily large.
- Zeros at the nonpositive integers (where has poles); entire, with no poles of its own.
- Numeric evaluation exponentiates LogBarnesG: the asymptotic series for for large , reached through the functional equation in logarithms. Complex supported; aligned with Wolfram's .
- The value itself overflows a double past (G(60) ); use LogBarnesG there, or stay exact at integers.
Plot
Examples
11 more kept as data, checked against the oraclesBasic #
Scope #
Interval arithmetic, proven: 's certified derivative keeps one sign on , so the image is its values at the ends, rounded outward
live ↗Properties #
Possible issues #
An exact non-integer argument stays symbolic under plain evaluation (use N(); Wolfram's closed form in Glaisher's constant is not reproduced)
live ↗About
| Examples | 29 |
|---|---|
| Checked against | Wolfram Language 20 agree9 differmpmath 21 agreeJulia 20 agree1 error |
| Crosswalk | WikipediaMathWorldWikidataDLMFFungrimFungrim entry ×12Wolfram LanguagempmathJulia |
Implementation
notatioG = exp(ln G) over the Weierstrass series of LogBarnesG; see there for what it costs to evaluate.
typescriptpackages/ce-patches/src/compute-engine/numerics/barnes-g.tsexp of the LogBarnesG kernel; exact superfactorials at the integers come from the head.
wolfram / mpmathpackages/oracle/src/mappings.tsBarnesG[z] and mpmath.barnesg(z), same normalisation.
mpmathpackages/oracle/src/mappings.tsjuliapackages/oracle/src/mappings.ts See also: LogBarnesG, Gamma, LogGamma, Factorial