If I had to construct a function for falling factorial in mathematica I'd do something like that (hope I'm not mistaken):
fallfact[x_,k_]:=$\prod_{j=0}^{k-1}(x-j)$
But is there a built-in function for falling factorial in Mathematica?
If I had to construct a function for falling factorial in mathematica I'd do something like that (hope I'm not mistaken):
fallfact[x_,k_]:=$\prod_{j=0}^{k-1}(x-j)$
But is there a built-in function for falling factorial in Mathematica?
According to MathWorld (a great resource with frequent references to Mathematica functions):
The falling factorial is implemented in Mathematica as
FactorialPower[x, n].A generalized version of the falling factorial can defined by
$$(x)_n^{(h)}=x(x-h)\cdots(x-(n-1)h)$$
and is implemented in Mathematica as
FactorialPower[x, n, h].
Documentation: FactorialPower
FactorialPower– ciao Apr 10 '14 at 06:50FactorialPowerpage, but "falling" doesn't seem to appear anywhere within that page. I'm torn between closing this as "easily found in the documentation" and leaving it as a signpost. What do you both think? ( @rasher ) – Mr.Wizard Apr 10 '14 at 06:59Pochhammerin MM is very different from the use in other fields of mathematics). Besides, I can wince as your answer gets 30 upvotes ;-} – ciao Apr 10 '14 at 07:04