BinomialCoefficient Command
This command is autocompleted in GeoGebra input line as command |
- BinomialCoefficient( <Number n>, <Number r> )
-
Calculates the binomial coefficient \( n \choose r \), i.e. it counts the number of ways to choose r objects out of n without repetitions (combinations).
BinomialCoefficient(5, 3)
yields 10.
In the CAS View it is possible to use variables as command arguments: in this case the command returns a formula for the binomial coefficient. |
BinomialCoefficient(n, 3)
yields \(\frac{n^3 - 3 n^2 + 2 n}{6}\).
See also nPr function. |