|
Computes the natural logarithm of the factorial.
Values will be approximated for x greather than 170, as the approximated _gammaLn function is used to obtain the results for large inputs.
The caller is responsible to handle edge cases such as nan, infinity, and -infinity in the input
-
x
:
int
-
The input to compute x!
-
Returns:
float
|
|
Computes the factorial of integers less than 170.
The factorial functions takes an int x and returns x!. This function will not overflow
the floating point format as long as x is at most 170, and will return +infinity for all values greather than 170
-
x
:
int
-
The input to compute x!
-
Returns:
float
|
|
Computes the natural logarithm of the factorial.
Values will be approximated for x greather than 170, as the approximated _gammaLn function is used to obtain the results for large inputs.
Edge cases in the input (nan, infinity, and -infinity) are catched and handled.
This might be slower than the unchecked version `_factorialLn` but does not require input sanitation to get expected results for these cases.
-
x
:
int
-
The input to compute x!
-
Returns:
float
|