Skip to content
Prev 66960 / 398506 Next

Handling very large integers with factorial and combinat (nCm)

On Mon, 4 Apr 2005, Marco Chiarandini wrote:

            
In this case, as doubles.  R numeric variables are doubles, and 'r' and 
'b' are numeric, not integer.  However,
gives the same result (and internally nCm computes in doubles: Note that 
factorials are computed via lgamma).