Difference between revisions of "Documentation/How Tos/Calc: PERMUT function"
From Apache OpenOffice Wiki
< Documentation | How Tos
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 21: | Line 21: | ||
{{Documentation/SeeAlso| | {{Documentation/SeeAlso| | ||
− | * [[Documentation/How_Tos/Calc: PERMUTATIONA function|PERMUTATIONA]] | + | * [[Documentation/How_Tos/Calc: PERMUTATIONA function|PERMUTATIONA]] |
− | * [[Documentation/How_Tos/Calc: COMBIN function|COMBIN]] | + | * [[Documentation/How_Tos/Calc: COMBIN function|COMBIN]] |
* [[Documentation/How_Tos/Calc: COMBINA function|COMBINA]] | * [[Documentation/How_Tos/Calc: COMBINA function|COMBINA]] | ||
Revision as of 14:32, 26 February 2009
PERMUT
Returns the number of ordered permutations for a given number of objects.
Syntax:
PERMUT(n; k)
- where n and k are integers.
- PERMUT returns the number of ordered ways that k objects can be chosen from a set of n objects, where an object can only be chosen once. For example with a set of 3 objects A, B, C, we can choose 2 as follows: AB, AC, BA, BC, CA, CB.
- PERMUT calculates:
Example:
PERMUT(3; 2)
- returns 6, as in the example above.
Template:Documentation/SeeAlso
Issues:
- The forthcoming international standard ODFF expects n and k to be integers. Both Calc and Excel truncate any non-integer parameter.