Difference between revisions of "Documentation/How Tos/Calc: COMBINA function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m |
m |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | __NOTOC__ | + | {{DISPLAYTITLE:COMBINA function}} |
+ | {{Documentation/CalcFunc MathematicalTOC | ||
+ | |ShowPrevNext=block | ||
+ | |PrevPage=Documentation/How_Tos/Calc:_COMBIN_function | ||
+ | |NextPage=Documentation/How_Tos/Calc:_CONVERT_function | ||
+ | }}__NOTOC__ | ||
== COMBINA == | == COMBINA == | ||
− | Returns the number of | + | Returns the number of combinations of a subset of items. |
=== Syntax: === | === Syntax: === | ||
− | <tt>'''COMBINA( | + | <tt>'''COMBINA(n; k)'''</tt> |
− | : <tt>''' | + | : <tt>'''n'''</tt> is the number of items in the set. |
− | : <tt>''' | + | : <tt>'''k'''</tt> is the number of items to choose from the set. |
− | : <tt>'''COMBINA'''</tt> returns the number of ways to choose these items, where the order of choosing is | + | : <tt>'''COMBINA'''</tt> returns the number of unique ways to choose these items, where the order of choosing is irrelevant, and repetition of items is allowed. For example if there are 3 items A, B and C in a set, you can choose 2 items in 6 different ways, namely AA, AB, AC, BB, BC and CC; you can choose 3 items in 10 different ways, namely AAA, AAB, AAC, ABB, ABC, ACC, BBB, BBC, BCC, CCC. |
: <tt>'''COMBINA'''</tt> implements the formula: | : <tt>'''COMBINA'''</tt> implements the formula: | ||
− | :: <tt>''' | + | :: <tt>'''(''n''+''k''-1)!/(''k''!(''n''-1)!)'''</tt> |
=== Example: === | === Example: === | ||
Line 20: | Line 25: | ||
: returns <tt>'''6'''</tt>. | : returns <tt>'''6'''</tt>. | ||
− | + | <tt>'''COMBINA(3,3)'''</tt> | |
− | ''' | + | : returns <tt>'''10'''</tt>. |
− | + | {{SeeAlso|EN| | |
+ | * [[Documentation/How_Tos/Calc: COMBIN function|COMBIN]] | ||
+ | * [[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|Functions listed alphabetically]] | ||
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Mathematical functions]] |
Latest revision as of 15:08, 31 January 2024
- Mathematical FunctionsTrigonometric
- COSSINTANCOTACOSACOTASINATANATAN2DEGREESRADIANSPIHyperbolic
- COSHSINHTANHCOTHACOSHACOTHASINHATANHRounding and remainders
- TRUNCROUNDROUNDDOWNROUNDUPCEILINGFLOOREVENODDMROUNDINTQUOTIENTMODLogarithm/Powers
-