the
nPr
of
(
n ,
r )
nPr
(
n ,
r )
N and r yield integer
s, number
s, or complex
es.
The nPr
function returns the number of permutations where n is the number of things to choose from and r is the number of things chosen.
The formula for the nPr
function is:
nPr
(n,r) = fact
(n) / fact
(n-r)
The nPr
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.