With the help of sympy.ff() method, we can find the Falling factorial. Falling factorial is defined by –
where x can be arbitrary expression and k is an integer.
Syntax: ff(x, k)
x – It denotes any arbitrary expression.
k – It denotes an integer.
Returns: Returns falling factorial corresponding to the given inputs.
Value of x = x and k = 5 Falling factorial ff(x, k) : x*(x - 4)*(x - 3)*(x - 2)*(x - 1)
Value of x = 7 and k = 5 Falling factorial ff(x, k) : 2520
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course