Gamma Module
Approximations for the gamma function and related functions. The gamma function (represented by Γ, the capital letter gamma from the Greek alphabet) is one commonly used extension of the factorial function to complex numbers: Γ(x) = (x-1)! The gamma function is defined for all complex numbers except the non-positive integers.
Functions and values
| Function or value | Description |
Full Usage:
_gamma z
Parameters:
^T
-
The function input for approximating Γ(z)
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
_gammaLn z
Parameters:
^T
-
The function input for approximating ln(Γ(z))
Returns: ^T
Modifiers: inline Type parameters: ^T |
The caller is responsible to handle edge cases such as nan, infinity, and -infinity in the input
|
Full Usage:
digamma x
Parameters:
^T
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
digammaPositive x
Parameters:
^T
-
The input value (must be > 1).
Returns: ^T
The value of the digamma function ψ(x).
Modifiers: inline Type parameters: ^T |
|
Full Usage:
gamma z
Parameters:
'T
-
The function input for approximating Γ(z)
Returns: 'T
Modifiers: inline Type parameters: 'T |
Edge cases in the input (nan, infinity, and -infinity) are catched and handled. This might be slower than the unchecked version `_gamma` but does not require input sanitation to get expected results for these cases.
|
Full Usage:
gammaLn z
Parameters:
'T
-
The function input for approximating ln(Γ(z))
Returns: 'T
Modifiers: inline Type parameters: 'T |
Edge cases in the input (nan, infinity, and -infinity) are catched and handled. This might be slower than the unchecked version `_gamma` but does not require input sanitation to get expected results for these cases.
|
Full Usage:
gammpapprox a x psig
Parameters:
^T
x : ^T
psig : bool
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
gcf a x
Parameters:
^T
x : ^T
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
gser a x
Parameters:
^T
x : ^T
Returns: ^T
Modifiers: inline Type parameters: ^T |
|
Full Usage:
lowerIncomplete a x
Parameters:
'T
-
x : 'T
-
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
lowerIncompleteRegularized a x
Parameters:
'T
x : 'T
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
maximum
Returns: float
|
|
Full Usage:
trigamma x
Parameters:
float
Returns: float
|
|
Full Usage:
upperIncomplete a x
Parameters:
'T
-
x : 'T
-
Returns: 'T
Modifiers: inline Type parameters: 'T |
|
Full Usage:
upperIncompleteRegularized a x
Parameters:
'T
x : 'T
Returns: 'T
Modifiers: inline Type parameters: 'T |
FSharp.Stats