next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
home
binomial -- binomial coefficient
Synopsis
Usage:
binomial(n,k)
Inputs:
n
,
an
integer
k
,
an
integer
, , must be non-negative
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)