combinatorics - Combinatorial functions in the Tcl Math Library
SYNOPSIS
package require Tcl 8.2
package require math ?1.2?
|
The math package contains implementations of several
functions useful in combinatorial problems.
COMMANDS
The Gamma function is defined as the improper integral from zero to
positive infinity of
t**(x-1)*exp(-t) dt
exp( ln_Gamma( x) ) |
C(n,k) = n! / k! (n-k)! |
Beta(z,w) = Beta(w,z) = Gamma(z) * Gamma(w) / Gamma(z+w) |