gives the Barnes G-function .


  • BarnesG is also known as the double gamma function.
  • Mathematical function, suitable for both symbolic and numeric manipulation.
  • The Barnes G-function is defined as G(n)=product_(k=1)^(n-1)TemplateBox[{k}, Gamma] for positive integers and is otherwise defined as TemplateBox[{z}, BarnesG]=(2 pi)^(z/2) exp((z-1) (TemplateBox[{z}, LogGamma]-z/2)-TemplateBox[{{-, 2}, z}, PolyGamma2]).
  • The Barnes G-function satisfies .
  • BarnesG can be evaluated to arbitrary numerical precision.
  • BarnesG automatically threads over lists.


open allclose all

Basic Examples  (5)

Evaluate numerically:

Plot over a subset of the reals:

Plot over a subset of the complexes:

Series expansion at the origin:

Series expansion at Infinity:

Scope  (18)

Numerical Evaluation  (4)

Evaluate numerically:

Evaluate to high precision:

The precision of the output tracks the precision of the input:

Complex number inputs:

Evaluate efficiently at high precision:

Specific Values  (4)

Value at infinity:

Value at zero:

Evaluate symbolically at halfinteger orders:

Find the first positive maximum:

Visualization  (2)

Plot the BarnesG function:

Plot the real part of :

Plot the imaginary part of :

Function Properties  (3)

Real domain of BarnesG:

Complex domain:

Approximate function range of BarnesG:

TraditionalForm formatting:

Differentiation  (2)

First derivatives with respect to z:

Higher derivatives with respect to z:

Plot the higher derivatives with respect to z:

Series Expansions  (3)

Find the Taylor expansion using Series:

Plots of the first three approximations around :

Find the series expansion at Infinity:

Taylor expansion at a generic point:

Applications  (2)

Integral values of BarnesG are related to superfactorial:

BarnesG may be generated by symbolic solvers:

Properties & Relations  (2)

BarnesG satisfies a differential equation:

FindSequenceFunction can recognize the BarnesG sequence:

Neat Examples  (1)

Determinants of Hankel matrices built out of Bell numbers:

Introduced in 2008