Difference between revisions of "BinomialCoefficient Command"
From GeoGebra Manual
m (Bot: Automated text replacement (-{{command +{{command|cas=true)) |
|||
Line 8: | Line 8: | ||
:Calculates the binomial coefficient <math> n \choose r </math>. If you type undefined variables instead of numbers it yields a formula for the binomial coefficient. | :Calculates the binomial coefficient <math> n \choose r </math>. If you type undefined variables instead of numbers it yields a formula for the binomial coefficient. | ||
:{{example|1=<div><code><nowiki>BinomialCoefficient[n, 3]</nowiki></code> yields <math>\frac{n^{3} - 3 n^{2} + 2 n}{6}</math>.</div>}} | :{{example|1=<div><code><nowiki>BinomialCoefficient[n, 3]</nowiki></code> yields <math>\frac{n^{3} - 3 n^{2} + 2 n}{6}</math>.</div>}} | ||
+ | {{Note|1= See also [[nPr Command|nPr command]].}} |
Revision as of 08:52, 12 August 2012
- BinomialCoefficient[ <Number n>, <Number r>]
- Calculates the binomial coefficient n \choose r .
- Example:
BinomialCoefficient[5, 3]
yields 10.
CAS Syntax
- BinomialCoefficient[ <Number n>, <Number r>]
- Calculates the binomial coefficient n \choose r . If you type undefined variables instead of numbers it yields a formula for the binomial coefficient.
- Example:
BinomialCoefficient[n, 3]
yields \frac{n^{3} - 3 n^{2} + 2 n}{6}.
Note: See also nPr command.