the
choose
of
(
n ,
r )
choose
(
n ,
r )
N and r yield integer
s, number
s, or complex
es.
The choose
function returns the number of combinations where n is the number of things to choose from and r is the number of things chosen.
The formula for the choose
function is:
choose
(n,r) = fact
(n) / (fact
(r) * fact
(n-r))
The choose
function is faster and more accurate than using the above formula.
If both arguments are integer
s or number
s, a number
is returned. If either argument is a complex
, a complex
is returned.