Difference between revisions of "Documentation/How Tos/Calc: COMBIN function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→See also:) |
OOoWikiBot (Talk | contribs) m (Robot: Automated text replacement %s) |
||
Line 20: | Line 20: | ||
: returns <tt>'''3'''</tt>. | : returns <tt>'''3'''</tt>. | ||
− | + | {{Documentation/SeeAlso| | |
− | + | * [[Documentation/How_Tos/Calc: COMBINA function|COMBINA]] | |
− | + | * [[Documentation/How_Tos/Calc: PERMUT function|PERMUT]] | |
− | + | * [[Documentation/How_Tos/Calc: PERMUTATIONA function|PERMUTATIONA]]''' | |
− | + | * [[Documentation/How_Tos/Calc: Mathematical functions|Mathematical functions]]''' | |
− | [[Documentation/How_Tos/Calc: Functions listed alphabetically| | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] |
− | [[Documentation/How_Tos/Calc: Functions listed by category| | + | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} |
Revision as of 13:35, 25 February 2009
COMBIN
Returns the number of combinations of a subset of items.
Syntax:
COMBIN(n; k)
- n is the number of items in the set.
- k is the number of items to choose from the set.
- COMBIN returns the number of ways to choose these items. For example if there are 3 items A, B and C in a set, you can choose 2 items in 3 different ways, namely AB, AC and BC.
- COMBIN implements the formula:
- n!/(k!(n-k)!)
Example:
COMBIN(3,2)
- returns 3.