Метод |
Описание |
|
catalanNumber ( integer $n ) : integer |
Catalan number |
|
centralBinomialCoefficient ( integer $n ) : integer |
Central Binomial Coefficient |
|
combinations ( integer $n, integer $k, boolean $repetition = false ) : integer |
Combinations - Binomial Coefficient
Number of ways of picking k unordered outcomes from n possibilities
n choose k: number of possible combinations of n objects taken k at a time. |
|
doubleFactorial ( integer $n ) : integer |
Double facatorial (iterative)
Also known as semifactorial |
|
factorial ( integer $n ) : integer |
Factorial (iterative)
Represents the number of ways to arrange n things (permutations)
n! = n(n - 1)(n - 2) ・・・ (n - (n - 1)) |
|
fallingFactorial ( number $x, integer $n ) : number |
Falling Factorial
Also known as descending factorial, falling sequential product, lower factorial. |
|
lahNumber ( integer $n, integer $k ) : number |
Lah number
Coefficients expressing rising factorials in terms of falling factorials. |
|
multinomial ( array $groups ) : integer |
Multinomial coefficient (Multinomial Theorem)
Finds the number of divisions of n items into r distinct nonoverlapping subgroups of sizes k₁, k₂, etc. |
|
permutations ( integer $n, integer $k = null ) : integer |
Permutations (ordered arrangements) |
|
risingFactorial ( number $x, integer $n ) : number |
Rising Factorial
Also known as Pochhammer function, Pochhammer polynomial, ascending factorial,
rising sequential product, upper factorial. |
|
subfactorial ( integer $n ) : integer |
Subfactorial - Derangement number (iterative)
The number of permutations of n objects in which no object appears in its natural place. |
|