Difference between revisions of "Documentation/How Tos/Calc: PERMUT function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
Line 19: Line 19:
 
<tt>'''PERMUT(3; 2)'''</tt>
 
<tt>'''PERMUT(3; 2)'''</tt>
 
: returns <tt>'''6'''</tt>, as in the example above.
 
: returns <tt>'''6'''</tt>, as in the example above.
 +
 +
===Issues: ===
 +
* The forthcoming international standard ODFF expects <tt>'''n'''</tt> and <tt>'''k'''</tt> to be integers. Both Calc and Excel truncate any non-integer parameter.
  
 
{{Documentation/SeeAlso|
 
{{Documentation/SeeAlso|
Line 31: Line 34:
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
===Issues: ===
 
* The forthcoming international standard ODFF expects <tt>'''n'''</tt> and <tt>'''k'''</tt> to be integers. Both Calc and Excel truncate any non-integer parameter.
 

Revision as of 08:04, 3 March 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:
Calc permut formula.png

Example:

PERMUT(3; 2)

returns 6, as in the example above.

Issues:

  • The forthcoming international standard ODFF expects n and k to be integers. Both Calc and Excel truncate any non-integer parameter.

Template:Documentation/SeeAlso

Personal tools