LogGamma
LogGamma[z]
gives the logarithm of the gamma function .
Details
- Mathematical function, suitable for both symbolic and numerical manipulation.
- LogGamma[z] is analytic throughout the complex z plane, except for a single branch cut discontinuity along the negative real axis. Log[Gamma[z]] has a more complex branch cut structure.
- For certain special arguments, LogGamma automatically evaluates to exact values.
- LogGamma can be evaluated to arbitrary numerical precision.
- LogGamma automatically threads over lists.
- LogGamma can be used with Interval and CenteredInterval objects. »
Examples
open allclose allBasic Examples (5)
Plot over a subset of the reals:
Plot over a subset of the complexes:
Series expansion about the origin:
Series expansion at Infinity:
Scope (36)
Numerical Evaluation (5)
Evaluate numerically to high precision:
The precision of the output tracks the precision of the input:
Evaluate LogGamma efficiently at high precision:
Compute worst-case guaranteed intervals using Interval and CenteredInterval objects:
Or compute average-case statistical intervals using Around:
Compute the elementwise values of an array:
Or compute the matrix LogGamma function using MatrixFunction:
Specific Values (4)
Visualization (2)
Function Properties (8)
LogGamma is defined for all positive real values:
LogGamma is not an analytic function:
Has both singularities and discontinuities:
LogGamma is neither nondecreasing nor nonincreasing:
LogGamma is not injective:
LogGamma is not surjective:
LogGamma is neither non-negative nor non-positive:
LogGamma is convex on its real domain:
Differentiation (3)
Integration (3)
Series Expansions (5)
Function Identities and Simplifications (3)
Use FullSimplify to simplify logarithmic gamma functions:
Use FunctionExpand to express through Gamma:
Function Representations (3)
Series representation of LogGamma:
Integral representation of LogGamma through PolyGamma:
TraditionalForm formatting:
Applications (4)
Calculate ratio of Gamma functions at very large arguments:
Direct calculation fails because intermediate numbers are too large:
Find the first few digits of :
Plot of the imaginary part of LogGamma[z] and Log[Gamma[z]] over the complex plane:
Determine the number of bins to use for bimodal data by Knuth's Bayesian method:
The optimal number of bins maximizes the log of the posterior density:
Properties & Relations (6)
Use FullSimplify to simplify logarithmic gamma functions:
Use FunctionExpand to express through Gamma:
Numerically find a root of a transcendental equation:
Find minimum of on the positive real axis:
In TraditionalForm, is automatically interpreted as the gamma function:
Possible Issues (2)
Text
Wolfram Research (1991), LogGamma, Wolfram Language function, https://reference.wolfram.com/language/ref/LogGamma.html (updated 2022).
CMS
Wolfram Language. 1991. "LogGamma." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/LogGamma.html.
APA
Wolfram Language. (1991). LogGamma. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LogGamma.html