Difference between revisions of "BinomialCoefficient Command"
From GeoGebra Manual
(typo) |
|||
Line 3: | Line 3: | ||
; BinomialCoefficient[Number n, Number r]: Calculates the binomial coefficient <math> n \choose r </math>. | ; BinomialCoefficient[Number n, Number r]: Calculates the binomial coefficient <math> n \choose r </math>. | ||
{{example|1=<code>BinomialCoefficient[5,3]</code> returns 10.}} | {{example|1=<code>BinomialCoefficient[5,3]</code> returns 10.}} | ||
− | ==CAS | + | ==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]: Calculates the binomial coefficient <math> n \choose r </math>. If you type undefined variables instead of numbers it yields a | ||
{{example|1=<code>BinomialCoefficient[n,3]</code> returns <math>\frac{n (n² - 3n + 2)}{6}</math>.}} | {{example|1=<code>BinomialCoefficient[n,3]</code> returns <math>\frac{n (n² - 3n + 2)}{6}</math>.}} |
Revision as of 15:18, 11 August 2011
- BinomialCoefficient[Number n, Number r]
- Calculates the binomial coefficient n \choose r .
Example:
BinomialCoefficient[5,3]
returns 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]
returns \frac{n (n² - 3n + 2)}{6}.