Getting binomial coefficient of a number in Julia – binomial() Method
binomial() is an inbuilt function in julia which is used to return the binomial coefficient which is the coefficient of the kth term in the polynomial expansion of .
Its formula is –
, where is the factorial of n.
If n is negative, then it is defined in terms of the identity
Syntax: binomial(n::Integer, k::Integer)
- n: Specified number
- k: Specified number
Returns: It returns the binomial coefficient .
20 -56 0 10