PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE
DOCUMENTATION CENTER
FOR THE LATEST INFORMATION.
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Mathematical Functions
>
Special Functions
>
Gamma Functions and Related Functions
>
Gamma
>
BUILT-IN MATHEMATICA SYMBOL
Special Functions
Tutorials »
|
Factorial
LogGamma
GammaRegularized
InverseGammaRegularized
PolyGamma
RiemannSiegelTheta
GammaDistribution
QGamma
FactorialPower
See Also »
|
Analytic Number Theory
Functions Used in Statistics
Gamma Functions and Related Functions
Mathematical Functions
Special Functions
More About »
Gamma
Gamma
[
z
]
is the Euler gamma function
.
Gamma
is the incomplete gamma function
.
Gamma
is the generalized incomplete gamma function
.
MORE INFORMATION
Mathematical function, suitable for both symbolic and numerical manipulation.
The gamma function satisfies
.
The incomplete gamma function satisfies
.
The generalized incomplete gamma function is given by the integral
.
Note that the arguments in the incomplete form of
Gamma
are arranged differently from those in the incomplete form of
Beta
.
Gamma
[
z
]
has no branch cut discontinuities.
Gamma
has a branch cut discontinuity in the complex
z
plane running from
to
.
For certain special arguments,
Gamma
automatically evaluates to exact values.
Gamma
can be evaluated to arbitrary numerical precision.
Gamma
automatically threads over lists.
EXAMPLES
CLOSE ALL
Basic Examples
(4)
Integer values:
Half-integer values:
Evaluate numerically for complex arguments:
Integer values:
In[1]:=
Out[1]=
Half-integer values:
In[1]:=
Out[1]=
Evaluate numerically for complex arguments:
In[1]:=
Out[1]=
In[1]:=
Out[1]=
Scope
(5)
Evaluate for large arguments:
Evaluate to high precision:
The precision of the output tracks the precision of the input:
Series expansion:
Incomplete gamma function:
Generalizations & Extensions
(11)
Infinite arguments give symbolic results:
Gamma
threads element-wise over lists:
Gamma
can be applied to a power series:
Series expansion at poles:
Expansion at symbolically specified negative integers:
Series expansion at infinity (Stirling approximation):
Give the result for an arbitrary symbolic direction:
TraditionalForm
formatting:
Evaluate symbolically at integer and half-integer orders:
Series expansion at a generic point:
Series expansion at infinity:
Evaluate symbolically at integer and half-integer orders:
Series expansion at a generic point:
Applications
(5)
Plot of the absolute value of
Gamma
in the complex plane:
Find the asymptotic expansion of ratios of gamma functions:
Volume of an
-dimensional unit hypersphere:
Low-dimensional cases:
Plot the volume of the unit hypersphere as a function of dimension:
Plot the real part of the incomplete gamma function over the parameter plane:
CDF of the
-distribution:
Calculate the PDF:
Plot the CDF for different numbers of degrees of freedom:
Properties & Relations
(6)
Use
FullSimplify
to simplify gamma functions:
Numerically find a root of a transcendental equation:
Sum expressions involving
Gamma
:
Generate from integrals, products, and limits:
Obtain
Gamma
as the solution of a differential equation:
Integrals:
Possible Issues
(2)
Large arguments can give results too large to be computed explicitly:
Machine-number inputs can give high-precision results:
Neat Examples
(2)
Nest
Gamma
over the complex plane:
Fractal from iterating
Gamma
:
SEE ALSO
Factorial
LogGamma
GammaRegularized
InverseGammaRegularized
PolyGamma
RiemannSiegelTheta
GammaDistribution
QGamma
FactorialPower
TUTORIALS
Special Functions
MORE ABOUT
Analytic Number Theory
Functions Used in Statistics
Gamma Functions and Related Functions
Mathematical Functions
Special Functions
RELATED LINKS
Implementation notes: Numerical and Related Functions
MathWorld
The Wolfram Functions Site
NKS|Online
(
A New Kind of Science
)
New in 1