Skip to content
Prev 58647 / 398502 Next

About 'choose' function

John wrote:

            
prod() calculates the whole product while choose() can do it the clever 
way avoiding overflows. On my machine, .Machine$double.xmax is 
1.797693e+308, hence prod(1:170) works while prod(1:171) is too much to 
be represented correctly ...

Uwe Ligges