next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 website
Macaulay2Doc
::
binomial
binomial -- binomial coefficient
Synopsis
Usage:
binomial(n,k)
Inputs:
n
,
an
integer
or
a
ring element
k
,
an
integer
, , must be non-negative
Outputs:
the binomial coefficient, the coefficient of $x^k$ in $(1+x)^n$ or $n(n-1)...(n-k+1)/k!$
Description
i1 : binomial(13,6) o1 = 1716
i2 : binomial(-1,3) o2 = -1
Ways to use
binomial
:
"binomial(RingElement,ZZ)"
"binomial(ZZ,ZZ)"
For the programmer
The object
binomial
is
a
method function
.