Difference between revisions of "NPr Command"
From GeoGebra Manual
m (1 revision: new commands) |
(command syntax: changed [ ] into ( )) |
||
(14 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <noinclude>{{Manual Page|version=5.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | |
− | <noinclude>{{Manual Page|version= | + | {{command|probability}} |
− | {{command| | + | ;nPr ( <Number n>, <Number r> ) |
− | ;nPr | + | :Returns the number of possible permutations without repetition of ''r'' elements out of a list of ''n'' elements. |
− | :{{ | + | :{{example| 1=<code><nowiki>nPr(10, 2)</nowiki></code> 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. | ||
+ | :{{examples| 1=<div> | ||
+ | :*<code><nowiki>nPr(10, 2)</nowiki></code> yields ''90''. | ||
+ | :*<code><nowiki>nPr(n, 3)</nowiki></code> yields ''<math>\frac{n!}{(n-3)!}</math>''.</div>}} | ||
+ | {{Note|1= See also [[BinomialCoefficient Command|BinomialCoefficient command]].}} |
Latest revision as of 11:17, 11 October 2017
- 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.
- Examples:
nPr(10, 2)
yields 90.nPr(n, 3)
yields \frac{n!}{(n-3)!}.
Note: See also BinomialCoefficient command.