Difference between revisions of "BinomialCoefficient Command"

From GeoGebra Manual
Jump to: navigation, search
m (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}</noinclude>
 
{{command|cas=true|algebra}}
 
{{command|cas=true|algebra}}
;BinomialCoefficient[ <Number n>, <Number r>]
+
;BinomialCoefficient[ <Number>, <Number> ]
:Calculates the binomial coefficient <math> n \choose r </math>.
+
:Calculates the binomial coefficient <math> n \choose r </math>. The first Number represents all elements ''n'' and the second Number represents the selected elements ''r''.
 
:{{example|1=<div><code><nowiki>BinomialCoefficient[5, 3]</nowiki></code> yields ''10''.</div>}}
 
:{{example|1=<div><code><nowiki>BinomialCoefficient[5, 3]</nowiki></code> yields ''10''.</div>}}
 
==CAS Syntax==
 
==CAS Syntax==
;BinomialCoefficient[ <Number n>, <Number r>]
+
;BinomialCoefficient[ <Number>, <Number> ]
: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>. The first Number represents all elements ''n'' and the second Number represents the selected elements ''r''. 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]].}}
 
{{Note|1= See also [[nPr Command|nPr command]].}}

Revision as of 15:50, 19 April 2013



BinomialCoefficient[ <Number>, <Number> ]
Calculates the binomial coefficient n \choose r . The first Number represents all elements n and the second Number represents the selected elements r.
Example:
BinomialCoefficient[5, 3] yields 10.

CAS Syntax

BinomialCoefficient[ <Number>, <Number> ]
Calculates the binomial coefficient n \choose r . The first Number represents all elements n and the second Number represents the selected elements 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.
© 2024 International GeoGebra Institute