Difference between revisions of "NPr Command"

From GeoGebra Manual
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=4.2}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page|version=4.2}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|probability}}
 
{{command|probability}}
;nPr [<Number n>, <Number r>]
+
;nPr [ <Number n>, <Number r> ]
 
:Returns the number of possible permutations without repetition of ''r'' elements out of a list of ''n'' elements.
 
:Returns the number of possible permutations without repetition of ''r'' elements out of a list of ''n'' elements.
 
:{{example| 1=<div><code><nowiki>nPr[10, 2]</nowiki></code> yields ''90''.</div>}}
 
:{{example| 1=<div><code><nowiki>nPr[10, 2]</nowiki></code> yields ''90''.</div>}}
 +
 
==CAS Syntax==
 
==CAS Syntax==
;nPr [<Number n>, <Number r>]
+
;nPr [ <Number n>, <Number r> ]
 
:Returns the number of possible permutations without repetition of ''r'' elements out of a list of ''n'' elements.
 
:Returns the number of possible permutations without repetition of ''r'' elements out of a list of ''n'' elements.
 
:{{example| 1=<div><code><nowiki>nPr[10, 2]</nowiki></code> yields ''90''.</div>}}
 
:{{example| 1=<div><code><nowiki>nPr[10, 2]</nowiki></code> yields ''90''.</div>}}
 
:{{example| 1=<div><code><nowiki>nPr[n, 3]</nowiki></code> yields ''n³ - 3n² + 2n''.</div>}}
 
:{{example| 1=<div><code><nowiki>nPr[n, 3]</nowiki></code> yields ''n³ - 3n² + 2n''.</div>}}
 
{{Note|1= See also [[BinomialCoefficient Command|BinomialCoefficient command]].}}
 
{{Note|1= See also [[BinomialCoefficient Command|BinomialCoefficient command]].}}

Revision as of 11:20, 10 July 2013


nPr [ <Number n>, <Number r> ]
Returns the number of possible permutations without repetition of r elements out of a list of n elements.
Example:
nPr[10, 2] yields 90.


CAS Syntax

nPr [ <Number n>, <Number r> ]
Returns the number of possible permutations without repetition of r elements out of a list of n elements.
Example:
nPr[10, 2] yields 90.
Example:
nPr[n, 3] yields n³ - 3n² + 2n.
© 2024 International GeoGebra Institute