Macaulay2 » Documentation
Packages » RInterface » RObject » binomial(RObject,RObject)
next | previous | forward | backward | up | index | toc

binomial(RObject,RObject) -- binomial coefficient of R objects

Description

Compute the binomial coefficient of two R numeric vectors, calling R's choose.

i1 : binomial(RObject 4, RObject 2)

o1 = [1] 6

o1 : RObject of type double

One of the operands may be a Macaulay2 object. It will be converted to an RObject before the operation is performed.

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/RInterface/doc/special.m2:125:0.