View source: R/log_factorial.R
This is a relatively faster function to calculate the log factorial of a non-negative integer n. If n = 1, the result is 0; if n <= 10000, the result is read from a pre-saved log factorial sheet; if n > 10000, use stirling's approximation.
1 | log_factorial(logFactorialSheet, n, base)
|
logFactorialSheet |
A pre-saved csv file that contains log factorial for n <= 10000. |
n |
A non-negative integer. |
base |
The base of a logarithm. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.