binomial -- binomial coefficient
Synopsis
-
- Usage:
- binomial(n,k)
-
Inputs:
-
Outputs:
-
an integer, the binomial coefficient, the coefficient of x^k in (1+x)^n
Description
i1 : binomial(13,6)
o1 = 1716
|
i2 : binomial(-1,3)
o2 = -1
|
Caveat
Doesn't do polynomials, things like binomial(x,3) where x is an element of a ring other than ZZ
Ways to use binomial :
-
binomial(ZZ,ZZ)
-
binomial(List,List) (missing documentation)
-
binomial(RingElement,ZZ) (missing documentation)