Difference between revisions of "BinomialCoefficient Command"
From GeoGebra Manual
Line 2: | Line 2: | ||
{{command|algebra}} | {{command|algebra}} | ||
; 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.}} | ||
==CAS-Syntax== | ==CAS-Syntax== | ||
− | ; 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>. If you type undefined variables instead of numbers it yields a formular for the binomial coefficient. |
+ | {{example|1=<code>BinomialCoefficient[n,3]</code> returns <math>\frac{n (n² - 3n + 2)}{6}</math>.}} |
Revision as of 13:41, 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 formular for the binomial coefficient.
Example:
BinomialCoefficient[n,3]
returns \frac{n (n² - 3n + 2)}{6}.