Documentation Center

  • Trial Software
  • Product Updates

Combinatorics

The combinat library provides combinatorial functions.

Many more combinatorial functions can be found in the algebraic combinatorics contribution package which can be downloaded at http://sourceforge.net/. Note: Computed results may differ after an external package is installed compared to those computed with the original software installation.

The library functions are called using the library name combinat and the name of the function. E.g., use

combinat::bell(5)

to compute the 5-th Bell number. This mechanism avoids naming conflicts with other library functions.

If this is found to be inconvenient, then the routines of the combinat library may be exported via use. E.g., after calling

use(combinat, bell)

the function combinat::bell may be called directly:

bell(5)

All routines of the combinat library are exported simultaneously by

use(combinat)

The functions available in the combinat library can be listed using

info(combinat)
Was this topic helpful?