Returns the value of the Gamma function for the specified number.
Namespace: Extreme.Mathematics.SpecialFunctions
Assembly: Extreme.Numerics (in Extreme.Numerics)
Version: 2.1.7017.0
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function Gamma ( _ x As Double _ ) As Double |
| C# |
|---|
public static double Gamma ( double x ) |
| Visual C++ |
|---|
public: static double Gamma ( double x ) |
Parameters
- x
- System.Double
A real number.
Return Value
The value of the Gamma function for x
Remarks
The Gamma function is a generalization to
real numbers of the factorial of an integer.
If x is a positive integer, then
the following equality holds:
Combinatorics.Factorial(x) = GammaFunctions.Gamma(x+1)
The formal definition of the Gamma function is
as follows:
![]()