Difference between revisions of "BinomialCoefficient Command"
From GeoGebra Manual
(typo) |
|||
Line 1: | Line 1: | ||
<noinclude>{{Manual Page|version=4.0}}</noinclude> | <noinclude>{{Manual Page|version=4.0}}</noinclude> | ||
{{command|algebra}} | {{command|algebra}} | ||
− | ; BinomialCoefficient[Number n, Number r]: Calculates the binomial coefficient <math> n \choose r </math>. | + | ;BinomialCoefficient[ <Number n>, <Number r>] |
− | {{example|1=<code>BinomialCoefficient[5,3]</code> | + | :Calculates the binomial coefficient <math> n \choose r </math>. |
+ | :{{example|1=<div><code><nowiki>BinomialCoefficient[5, 3]</nowiki></code> yields ''10''.</div>}} | ||
==CAS Syntax== | ==CAS Syntax== | ||
− | ; BinomialCoefficient[Number n, Number r]: 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. | + | ;BinomialCoefficient[ <Number n>, <Number r>] |
− | {{example|1=<code>BinomialCoefficient[n,3]</code> | + | :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 (n^{2} - 3 n + 2)}{6}</math>.</div>}} |
Revision as of 13:48, 6 September 2011
- 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 (n^{2} - 3 n + 2)}{6}.