Description Usage Arguments Details Value Author(s)
View source: R/GetLogFactorials.R
GetLogFactorials
1 |
n |
numeric, the max value needed |
Calculates the logarithm of x! for all x <= n and places those in a vector. To get around that you cannot index a vector with 0, you should always index this vector with the value + 1. The purpose of this function is that x! cannot be calculated for x > 170, while that is not a problem for log(x!), but you cannot use the built-in factorial function in matlab and do log afterwards!
vector
Johan Gustafsson, Juan Inda, <inda@chalmers.se>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.